private ResourceInstance createMpackResource(String id) {
    return createResource(Resource.Type.Mpack,
            Collections.singletonMap(Resource.Type.Mpack, id));

  }
Create an mpack resource instance
@param id
@return ResourceInstance
ambari-server/src/main/java/org/apache/ambari/server/api/services/MpacksService.java