Bruno Oliveira point of the servlet is to expose a resource under WEB-INF. That is mirroring keycloak.json to different location without actually having file twice in the war.