class KerberosServerAction extends AbstractServerAction {

  protected Map<String, String> getConfigurationProperties(String configType) throws AmbariException {
    if (StringUtils.isNotEmpty(configType)) {
      Cluster cluster = getCluster();
      Config config = (cluster == null) ? null : cluster.getDesiredConfigByType(configType);
      Map<String, String> properties = (config == null) ? null : config.getProperties();

      if (properties == null) {
        LOG.warn("The '{}' configuration data is not available:" +
                "\n\tcluster: {}" +
                "\n\tconfig: {}" +
                "\n\tproperties: null",
            configType,
            (cluster == null) ? "null" : "not null",
            (config == null) ? "null" : "not null");
      }

      return properties;
    } else {
      return null;
    }
  }

}