public boolean isEnabled(Configuration configuration) {
      if (null != m_enabled) {
        return m_enabled.booleanValue();
      }

      // start with TRUE
      m_enabled = Boolean.TRUE;
      String property = configuration.getProperty(m_configurationProperty);

      if (null != property) {
        try {
          m_enabled = Boolean.valueOf(property);
        } catch (Exception exception) {
          LOG.error("Unable to determine if the lock area {} is enabled, defaulting to TRUE",
              m_configurationProperty, exception);
        }
      }

      LOG.info("LockArea {} is {}", name(), m_enabled ? "enabled" : "disabled");
      return m_enabled.booleanValue();
    }
Gets whether this {@link LockArea} is enabled.

@param configuration
         the configuration to read from (not {@code null}).
@return {@code true} if enabled, {@code false} otherwise.
ambari-server/src/main/java/org/apache/ambari/annotations/TransactionalLock.java