* @return
* @throws SecurityException
*/
private it.eng.spagobi.services.execute.stub.DocumentExecuteService lookUp() throws SecurityException {
try {
DocumentExecuteServiceServiceLocator locator = new DocumentExecuteServiceServiceLocator();
it.eng.spagobi.services.execute.stub.DocumentExecuteService service=null;
if (serviceUrl!=null ){
service = locator.getDocumentExecuteService(serviceUrl);
}else {
service = locator.getDocumentExecuteService();
}
return service;
} catch (ServiceException e) {
logger.error("Impossible to locate [" + SERVICE_NAME + "] at [" + serviceUrl + "]");
throw new SecurityException("Impossible to locate [" + SERVICE_NAME + "] at [" + serviceUrl + "]", e);