}
}
private UnifiedEndpoint buildUnifiedEndpoint(EndpointConfiguration endpointConfiguration) throws AxisFault {
UnifiedEndpointFactory uepFactory = new UnifiedEndpointFactory();
UnifiedEndpoint partnerEndpoint;
if (endpointConfiguration != null && (endpointConfiguration.getUnifiedEndPoint() != null ||
endpointConfiguration.getUnifiedEndPointReference() != null)) {
if (endpointConfiguration.getUnifiedEndPoint() != null) {
partnerEndpoint = uepFactory.createEndpoint(endpointConfiguration.getUnifiedEndPoint());
} else {
String uepConfPath = endpointConfiguration.getUnifiedEndPointReference();
if (!uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_GOV_REG) ||
!uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_CONF_REG) ||
!uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_REG)) {
if (uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_FILE)) {
uepConfPath = uepConfPath.substring(UnifiedEndpointConstants.VIRTUAL_FILE.
length());
}
if (isAbsoutePath(uepConfPath)) {
uepConfPath = UnifiedEndpointConstants.VIRTUAL_FILE + uepConfPath;
} else {
uepConfPath = getAbsolutePath(endpointConfiguration.getBasePath(), uepConfPath);
}
}
partnerEndpoint = uepFactory.createVirtualEndpoint(uepConfPath);
}
} else {
partnerEndpoint = new UnifiedEndpoint();
partnerEndpoint.setUepId(this.serviceName.getLocalPart());
partnerEndpoint.setAddressingEnabled(true);