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)) {