SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
.get(locomotive);
try {
return locomotiveControl.acquireLock(sLocomotive);
} catch (SRCPLockingException e) {
throw new LockingException("Locomotive Locked", e);
} catch (SRCPModelException e) {
throw new LockingException("Locomotive Error", e);
}
}