private boolean isDatabaseManaged(Map<String, Map<String, String>> properties) {
      // conditional property should always exist since it is required to be specified in the stack
      Map<String, String> configMap = properties.get(configPropertyType);
      if (configMap == null) {
        LOG.warn("Config map is null for property type: {}", configPropertyType);
        return false;
      }

      String conditionalValue = configMap.get(conditionalPropertyName);
      if (conditionalValue == null) {
        LOG.warn("Conditional value is null for property name: {}", conditionalPropertyName);
        return false;
      }

      boolean isManaged = conditionalValue.startsWith("New");
      LOG.info("Database managed status: {} for value: {}", isManaged, conditionalValue);
      return isManaged;
    }
Determine if database is managed, meaning that it is a component in the cluster topology.

@return true if the DB is managed; false otherwise
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java