}
private static RuleMap getRuleMap2() {
RuleMap ruleMap = new RuleMap();
List<ServiceDefinition> services = new ArrayList<ServiceDefinition>();
ServiceDefinition service = new ServiceDefinition("S2");
service.addWatches("load");
services.add(service);
service = new ServiceDefinition("S3");
service.addWatches("load");
services.add(service);
RuleDefinition rule = new RuleDefinition("ScalingRuleHandler");
ruleMap.addRuleMapping(rule, services.toArray(new ServiceDefinition[services.size()]));