}
protected Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint,
Properties properties) {
DefaultEndpoint defaultEndpoint = new DefaultEndpoint();
OMAttribute name = epConfig.getAttribute(
new QName(XMLConfigConstants.NULL_NAMESPACE, "name"));
if (name != null) {
defaultEndpoint.setName(name.getAttributeValue());
}
OMElement defaultElement = epConfig.getFirstChildWithName(
new QName(SynapseConstants.SYNAPSE_NAMESPACE, "default"));
if (defaultElement != null) {
EndpointDefinition endpoint = createEndpointDefinition(defaultElement);
defaultEndpoint.setDefinition(endpoint);
processAuditStatus(endpoint, defaultEndpoint.getName(),defaultElement);
}
processProperties(defaultEndpoint, epConfig);
return defaultEndpoint;