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