* @throws Exception
*/
@Path("rest/{version}/{endpoint}")
public Object rest(@PathParam("version") String version, @PathParam("endpoint") String endpoint) throws Exception {
if (restResources != null) {
RestKey key = new RestKey(version, endpoint);
Provider<RestResource> provider = restResources.get(key);
if (provider == null) {
throw new NotFoundException(String.format("No rest resource found for '%s:%s'", version, endpoint ));