protected abstract Uniform createRoot( Request request, Response response );
// Callbacks used from resources
public void subResource( Class<? extends ContextResource> subResourceClass )
{
Uniform subResource = subResources.get( subResourceClass );
if( subResource == null )
{
// Instantiate and store subresource instance
subResource = module.newObject( subResourceClass, this );
subResources.put( subResourceClass, subResource );
}
subResource.handle( Request.getCurrent(), Response.getCurrent() );
}