}
} else {
element = document.getFirstChildWithName(
new QName(SynapseConstants.SYNAPSE_NAMESPACE, "endpoint"));
if (element != null) {
Template endpointTemplate =
SynapseXMLConfigurationFactory.defineEndpointTemplate(
synapseConfig, document, properties);
if (endpointTemplate != null) {
endpointTemplate.setFileName(file.getName());
synapseConfig.getArtifactDeploymentStore().addArtifact(
file.getAbsolutePath(), endpointTemplate.getName());
}
}
}
}
}