inSharepointClientContext) throws SharepointException {
String endpoint = Util.encodeURL(inSharepointClientContext.getSiteURL())
+ 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) {