protected ResourceInstance createResource(Resource.Type type, Map<Resource.Type, String> mapIds) {
    return m_resourceFactory.createResource(type, mapIds);
  }
Create a resource instance.

@param type    the resource type
@param mapIds  all primary and foreign key properties and values

@return a newly created resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java