if (pc == null)
throw new NoSuchContextException();
RWLock pLock = (RWLock) p2pl.get(preset);
if (pLock != null) {
return pLock.tryRead();
} else
throw new NoSuchPresetException(preset);
}
public void lockPresetWrite(PresetContext pc, Integer preset) throws NoSuchPresetException, NoSuchContextException {