hm.setName("H1");
PhaseRule rule = new PhaseRule();
rule.setPhaseName("PhaseA");
rule.setPhaseFirst(true);
hm.setRules(rule);
ph.addHandler(hm);
HandlerDescription hm1 = new HandlerDescription();
hm1.setClassName("org.apache.axis2.phaserule.PhaseRuleHandler");
Handler h2 = new PhaseRuleHandler();
((PhaseRuleHandler) h2).setName("Second Handler");