private static Map<Resource.InternalType, Set<String>> readPropertyIds(String filename) {
    ObjectMapper mapper = new ObjectMapper();

    try {
      return mapper.readValue(ClassLoader.getSystemResourceAsStream(filename), new TypeReference<Map<Resource.InternalType, Set<String>>>() {
      });
    } catch (IOException e) {
      throw new IllegalStateException("Can't read properties file " + filename, e);
    }
  }
Factory method to create an update request from the given map of properties.
The properties values in the given map are used to update the resource.

@param properties             resource properties associated with the request; may be null
@param requestInfoProperties  request specific properties; may be null
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/PropertyHelper.java