private ResourceInstance createResource() {
    return createResource(Resource.Type.PreUpgradeCheck, Collections.singletonMap(Resource.Type.Cluster, clusterName));
  }
Creates an upgrade check resource instance.

@return an upgrade check resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/PreUpgradeCheckService.java