code: public static Set<String> listDeployments(Resource deploymentRootResource, Set<String> runtimeNames) {
            Set<Pattern> set = new HashSet<>();
            for (String wildcardExpr : runtimeNames) {
                Pattern pattern = DeploymentOverlayIndex.getPattern(wildcardExpr);
                set.add(pattern);
            }
            return listDeploymentNames(deploymentRootResource, set);
        }
docs: Returns the deployment names with the specified runtime names at the specified deploymentRootAddress.
  
  @param deploymentRootResource
  @param runtimeNames
  @return the deployment names with the specified runtime names at the specified deploymentRootAddress.