public void addResourceService(String resourceName, Object service) {
    resourceServiceMap.put(resourceName, service);
  }
Register a sub-resource service.

@param resourceName  the resource name
@param service       the service
ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewExternalSubResourceService.java