code: public static Cluster getCluster(Config config, Context context) {
      Cluster cluster = null;
      if (config != null && context != null) {
        String clusterName = context.getCluster();
        if (clusterName != null) {
          List<NamedCluster> clusters = config.getClusters();
          if (clusters != null) {
            for (NamedCluster namedCluster : clusters) {
              if (clusterName.equals(namedCluster.getName())) {
                cluster = namedCluster.getCluster();
              }
            }
          }
        }
      }
      return cluster;
    }
docs: Returns the current {@link Cluster} for the current context
  
  @param config     {@link Config} config object
  @param context    {@link Context} context object
  @return current {@link Cluster} for current context