public ReadWriteLock newReadWriteLock(String label) {
    ReentrantReadWriteLock baseLock = new ReentrantReadWriteLock();
    if (profiling) {
      ProfiledReentrantReadWriteLock profiledLock = new ProfiledReentrantReadWriteLock(baseLock, Ticker.systemTicker(), label);
      profiledLocks.add(profiledLock.readLock());
      profiledLocks.add(profiledLock.writeLock());
      return profiledLock;
    }
    return baseLock;
  }
@return a new ReadWriteLock instance (implementation depends on configuration setting) with <code>label</code> to identify it in log messages
ambari-server/src/main/java/org/apache/ambari/server/logging/LockFactory.java