*/
@Path("{instanceName}/{resources}")
public Object getResourceHandler(@PathParam("instanceName") String instanceName,
@PathParam("resources") String resources) {
ViewInstanceDefinition instanceDefinition =
ViewRegistry.getInstance().getInstanceDefinition(m_viewName, instanceName);
if (instanceDefinition == null) {
throw new IllegalArgumentException("A view instance " +
m_viewName + "/" + instanceName + " can not be found.");
}
Object service = instanceDefinition.getService(resources);
if (service == null) {
throw new IllegalArgumentException("A resource type " + resources + " for view instance " +
m_viewName + "/" + instanceName + " can not be found.");
}