String endpoint = Util.encodeURL(siteurl) + SPConstants.GSACLENDPOINT;
LOGGER.log(Level.CONFIG, "Endpoint set to: " + endpoint);
final GssAclMonitorLocator loc = new GssAclMonitorLocator();
loc.setGssAclMonitorSoapEndpointAddress(endpoint);
final GssAclMonitor service = loc;
try {
stub = (GssAclMonitorSoap_BindingStub) service.getGssAclMonitorSoap();
} catch (final ServiceException e) {
LOGGER.log(Level.WARNING, e.getMessage(), e);
throw new SharepointException("Unable to create GssAcl stub.");
}
}