@Override
  public ResourceProvider getResourceProvider(Resource.Type type) {

    Map<Resource.Type, ResourceProvider> resourceProviders =
        ViewRegistry.getInstance().getResourceProviders();

    if (resourceProviders.containsKey(type)) {
      return resourceProviders.get(type);
    }
    return providerModule.getResourceProvider(type);
  }
Construct a view provider module.

@param providerModule     the delegate provider module
ambari-server/src/main/java/org/apache/ambari/server/view/ViewProviderModule.java