static String root ( final ResourcePath path ) { if ( path . getDepth ( ) == 1 ) return path . getResourcePath ( ) ; throw new JaxRxException ( 404 , "Resource not found: " + path ) ; }
Returns the root resource of the specified path .