private Inflector<ContainerRequestContext, Response> keysHandler() {
return new Inflector<ContainerRequestContext, Response>() {
public Response apply(ContainerRequestContext ctx) {
App app = RestUtils.getPrincipalApp();
if (app != null) {
app.resetSecret();
app.update();
Map<String, String> creds = app.getCredentials();
creds.put("info", "Save the secret key! It is showed only once!");
return Response.ok(creds).build();
}