String clusterName, ClusterType clusterType, boolean isStatic) {
ConfigParser parser = new ConfigParser();
ConfigParser.Config config = parser.parse(configFilename);
// find the requested cluster
Cluster cluster = null;
for (Cluster checkCluster : config.getClusters()) {
if (checkCluster.getName().equals(clusterName)
&& checkCluster.getType().equals(clusterType)) {
cluster = checkCluster;
break;