Address deploymentsAddress = new Address();
String TEST_WAR = "test.war";
deploymentsAddress.add("deployment", TEST_WAR);
Operation step1 = new Operation("add",deploymentsAddress);
String bytes_value = "123";
step1.addAdditionalProperty("hash", new PROPERTY_VALUE("BYTES_VALUE", bytes_value));
step1.addAdditionalProperty("name", TEST_WAR);
Address serverGroupAddress = new Address();
serverGroupAddress.add("server-group","main-server-group");
serverGroupAddress.add("deployment", TEST_WAR);
Operation step2 = new Operation("add",serverGroupAddress);
step2.addAdditionalProperty("enabled","true");
Operation step3 = new Operation("remove",serverGroupAddress);
Operation step4 = new Operation("remove",deploymentsAddress);
CompositeOperation cop = new CompositeOperation();
cop.addStep(step1);
cop.addStep(step2);
cop.addStep(step3);