public Object manage(ManagedResource managedResource) {
Object resource = managedResource.getResource();
//
RESTEndpoint annotation = resource.getClass().getAnnotation(RESTEndpoint.class);
//
if (annotation != null) {
String name = annotation.path();
ResourceKey key = new ResourceKey(name);
resourceMap.put(key, new RestResource(name, managedResource));
return key;
}