public Optional<String> authenticate(BasicCredentials basicCredentials) throws AuthenticationException {
return Optional.of("USERNAME");
}
}, "AuthResource Realm"));
environment.addResource(new AuthResource());
environment.addResource(new GreetingsResource());
environment.addResource(new HttpServletRequestResource());
environment.addResource(new RecursiveResource());
environment.addResource(new ResponseResource());
environment.addResource(new ModelResource());