*/
public void bindSequences(String referenceSequenceId, String boundSequenceId) throws UnknownSequenceException {
try {
dataLock.writeLock().lock();
if (!sequences.containsKey(referenceSequenceId)) {
throw new UnknownSequenceException(referenceSequenceId);
}
if (!sequences.containsKey(boundSequenceId)) {
throw new UnknownSequenceException(boundSequenceId);
}
boundSequences.put(referenceSequenceId, boundSequenceId);
} finally {
dataLock.writeLock().unlock();