MockProcessInstance pi = (MockProcessInstance) processInstance; if (!pi.isLocked()) { throw new LockException("Process isn't marked as Locked!"); } pi.setLocked(false);
    public void releaseLock(IProcessInstance processInstance, IEngine engine) throws LockException {            }