HandlerMaker maker = HandlerMaker.getInstance();
AbstractHandler handler = maker.lookup(PublisherHandler.TAG_NAME);
Element parent = XMLUtils.newRootElement();
Element child = null;
Publisher publisher = new Publisher();
publisher.setPublisherID("bcrosby");
publisher.setName("Bing Crosby");
publisher.setLastName("Crosby");
publisher.setFirstName("Bing");
publisher.setWorkPhone("978.123-4567");
publisher.setMobilePhone("617-765-9876");
publisher.setPager("800-123-4655 ID: 501");
publisher.setEmailAddress("bcrosby@juddi.org");
publisher.setAdmin(true);
publisher.setEnabled(true);
System.out.println();
RegistryObject regObject = publisher;
handler.marshal(regObject,parent);