public static AmbariServerConfigurationCategory translate(String categoryName) {
    if (!StringUtils.isEmpty(categoryName)) {
      categoryName = categoryName.trim();
      for (AmbariServerConfigurationCategory category : values()) {
        if (category.getCategoryName().equals(categoryName)) {
          return category;
        }
      }
    }

    LOG.warn("Invalid Ambari server configuration category: {}", categoryName);
    return null;
  }
Safely returns an {@link AmbariServerConfigurationCategory} given the category's descriptive name

@param categoryName a descriptive name
@return an {@link AmbariServerConfigurationCategory}
ambari-server/src/main/java/org/apache/ambari/server/configuration/AmbariServerConfigurationCategory.java