public boolean terminate(_terminateRequest undeploy)
public boolean terminate(TerminateRequest undeploy)
    public boolean terminate(_terminateRequest undeploy)            throws RemoteException {        final URI appURI = undeploy.getApplication();        if (appURI == null) {            throw raiseBadArgumentFault(ERROR_NO_APPLICATION);        }        String reason;        reason = undeploy.getReason();        if (reason == null) {            reason = "";        }        JobState job = lookupJobNonFaulting(appURI);        if (job == null) {            //job was not found, this is not an error.            return true;        }        log.info("terminating " + job.getName() + " for " + reason);        if (terminate(job, reason)) {            //purge the store            JobRepository jobs = ServerInstance.currentInstance().getJobs();            jobs.remove(appURI);            return true;        }        return false;    }