code: public static HpelFormatter getFormatter(String formatStyle) {
          if (formatStyle != null && !"".equals(formatStyle)) {
              if (formatStyle.equalsIgnoreCase(FORMAT_BASIC)) {
                  return new HpelBasicFormatter();
              } else if (formatStyle.equalsIgnoreCase(FORMAT_ADVANCED)) {
                  return new HpelAdvancedFormatter();
              } else if (formatStyle.equalsIgnoreCase(FORMAT_CBE101)) {
                  return new HpelCBEFormatter();
              } else if (formatStyle.equalsIgnoreCase(FORMAT_JSON)) {
                  return new HpelJsonFormatter();
              }
          }
  
          throw new IllegalArgumentException(formatStyle + " is not a valid formatter style");
      }
docs: Returns the HpelFormatter subclass instance to be used for formatting a RepositoryLogRecord. The formatter returned
  is based on the formatStyle requested.
  
  @param formatStyle the style of the HpelFormatter instance to be returned. Valid values must match (case-insensitive) {@link #FORMAT_BASIC}, {@link #FORMAT_ADVANCED}, or
  {@link #FORMAT_CBE101}
  
  @return a HpelFormatter instance that matches the requested formatter style
  
  @throws IllegalArgumentException when the formatterName is invalid due to a <code>null</code> value passed or a formatter name
  that is not recognized
  
  @see TimeZone