// Get the "ProcessStore" interface by grabbing the internal field
// of OdeContext and querying for the processes. Could also use PMAPI here,
// but in any case we just need to know if the process exists in a deployed state.
//
// TODO: add a OdeContext.getStore() method to clean this up.
OdeContext inst = OdeContext.getInstance();
Field _store = inst.getClass().getDeclaredField("_store");
_store.setAccessible(true);
ProcessStore ps = (ProcessStore) _store.get(inst);
List<QName> processes = ps.listProcesses(processName);
Result = processes != null && !processes.isEmpty();
} catch (Exception e) {