private final static boolean isPassword(String propertyName) {
    return propertyName.toLowerCase().contains(PASSWORD_TEXT) || propertyName.toLowerCase().contains(PASSWD_TEXT);
  }
Helper function to mask a string of properties that may contain a property with a password.
@param propertyMap Property map to mask by replacing any passwords with the text "SECRET"
@return a new map with the passwords masked, or null if the <code>propertyMap</code> is null.
ambari-server/src/main/java/org/apache/ambari/server/utils/SecretReference.java