public ResourceProvider getResourceProvider(Resource.Type type) {
    return resourceProviders.get(type);
  }
Get the resource provider for the given resource type.

@param type the resource type
@return the resource provider
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java