public Metadata parse(Element element, ParserContext context) {
String s = element.getLocalName();
if ("endpoint".equals(s)) {
return new EndpointDefinitionParser().parse(element, context);
} else if ("server".equals(s)) {
return new ServerFactoryBeanDefinitionParser(JaxWsServerFactoryBean.class)
.parse(element, context);
} else if ("client".equals(s)) {
return new ClientProxyFactoryBeanDefinitionParser(JaxWsProxyFactoryBean.class)
.parse(element, context);
}