public static ConcatenationType translate(String value) {
      if (value != null) {
        value = value.trim();

        if (!value.isEmpty()) {
          return valueOf(value.toUpperCase());
        }
      }

      return DEFAULT_CONCATENATION_TYPE;
    }
Translate a string declaring a concatenation type to the enumerated value.
<p/>
If the string value is <code>null</code> or empty, return the default type - {@link #NEW_LINES}.

@param value a value to translate
@return a ConcatenationType
ambari-server/src/main/java/org/apache/ambari/server/controller/AuthToLocalBuilder.java