return new ServiceManager(stageServices);
}
@SuppressWarnings("unchecked")
public static List<String> getStages(String host, int port, String group) throws IOException {
HttpConnection connection = new HttpConnection(host, port);
HttpResponse response = connection.get("/"+GET_STAGES_URL+"?"+GROUP_PARAM+"="+group);
if(response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
logger.error("Unable to get list stages in the group");
return new ArrayList<String>();
}