public ResourceProvider getResourceProvider(String type) {
    String typeName = view.getQualifiedResourceTypeName(type);
    return resourceProviders.get(Resource.Type.valueOf(typeName));
  }
Get the resource provider for the given resource type name (scoped to this view).

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