throw new JobExecutionException("Error Executing trigger", (e.getRootCause() != null) ? e.getRootCause() : e, true);
throw new JobExecutionException("Error Executing trigger", (e.getRootCause() != null) ? (Exception)e.getRootCause() : e, true);
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {        try {            JobDataMap data = jobExecutionContext.getJobDetail().getJobDataMap();            long id = data.getLong("entryId");            int triggerId = data.getInt("triggerId");            String username = data.getString("username");            String password = data.getString("password");            Context context = new Context();            context.setProperty("authUser", username);            context.setProperty("authPassword", password);            Workflow wf = (Workflow) Registry.bind(System.getProperty("osworkflow.soap.url", "http://localhost/example/glue/oswf.wsdl"), Workflow.class, context);            wf.executeTriggerFunction(id, triggerId);        } catch (RegistryException e) {            log.error("Error using GLUE to make remote call", e);            throw new JobExecutionException("Error using GLUE to make remote call", e, true);        } catch (WorkflowException e) {            log.error("Error Executing trigger", e);            throw new JobExecutionException("Error Executing trigger", (e.getRootCause() != null) ? e.getRootCause() : e, true);        }    }