}
public void acquireLock(Set terms){
for (Term term : (Set<Term>) terms) {
CachedObjectWrapper<CompactedTermDocMetadataArray, TermDocMetadataVersionIdentifier> cow;
CompactedTermDocMetadataArray ctdm = null;
try {
cow = ReaderCache.getTermDocsMetadata(term, indexName, startDocId, endDocId);
ctdm = cow.getValue();
if(ctdm.readWriteLock.getReadLockCount() > 10){