}
private SchedulerService lookUp() throws SecurityException {
try {
SchedulerServiceServiceLocator locator = new SchedulerServiceServiceLocator();
SchedulerService service = null;
if (serviceUrl!=null ){
service = locator.getSchedulerService(serviceUrl);
}else {
service = locator.getSchedulerService();
}
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);