@Component
public class WebServiceServerConverter extends AbstractEndpointConverter<Server> {
@Override
public EndpointData convert(Server server) {
EndpointData endpointData = new EndpointData(getEndpointType(), server.getId(), getModelClass());
endpointData.add(property("port", server));
endpointData.add(property("autoStart", server, "true")
.options("true", "false"));
endpointData.add(property("resourceBase", server));
endpointData.add(property("contextPath", server));
endpointData.add(property("rootParentContext", server, "true")
.options("true", "false"));
endpointData.add(property("handleMimeHeaders", server, "true")
.options("true", "false"));
endpointData.add(property("messageConverter", server)
.optionKey(MessageConverter.class.getName()));
endpointData.add(property("endpointAdapter", server)
.optionKey(EndpointAdapter.class.getName()));
endpointData.add(property("securityHandler", server));
endpointData.add(property("servletHandler", server));
endpointData.add(property("connector", server));
endpointData.add(property("connectors", server));
endpointData.add(property("servletName", server));
endpointData.add(property("servletMappingPath", server));
endpointData.add(property("interceptors", server));
endpointData.add(property("soapHeaderNamespace", server));
endpointData.add(property("soapHeaderPrefix", server));
endpointData.add(property("timeout", server, "5000"));
return endpointData;
}