+ SPConstants.USERPROFILEENDPOINT;
LOGGER.log(Level.CONFIG, "Endpoint set to: " + endpoint);
final UserProfileServiceLocator loc = new UserProfileServiceLocator();
loc.setUserProfileServiceSoapEndpointAddress(endpoint);
final UserProfileService service = loc;
try {
stub = (UserProfileServiceSoap_BindingStub) service.getUserProfileServiceSoap();
} catch (final ServiceException e) {
LOGGER.log(Level.WARNING, e.getMessage(), e);
throw new SharepointException("Unable to create the userprofile stub.");
}
}