TemplateEndpoint templateEndpoint = new TemplateEndpoint();
OMAttribute endpointNameAttribute = endpointElement.getAttribute(
new QName(XMLConfigConstants.NULL_NAMESPACE, "name"));
if (endpointNameAttribute != null) {
templateEndpoint.addParameter("name", endpointNameAttribute.getAttributeValue());
templateEndpoint.setName(endpointNameAttribute.getAttributeValue());
} else {
handleException("Error loading the configuration from Template " +
"Endpoint, name attribute is missing");
}