@Override
  public RequestStatus updateResources(Request request, Predicate predicate)
      throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {

    Set<Resource> resources = getResources(request, predicate);

    Integer requestId = -1;

    Iterator<Map<String,Object>> iterator = request.getProperties().iterator();
    if (iterator.hasNext()) {
      Map<String, Object> properties = iterator.next();

      for (Resource resource : resources) {
        requestId = updateProperties(resource, properties);
      }
    }
    return getRequestStatus(requestId == -1 ? null : requestId);
  }
Construct a resource provider based on the given cluster definition.

@param clusterDefinition  the cluster definition
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/AbstractResourceProvider.java