code: private FormatHandler getFormatHandler(final Source source) {
          if (source instanceof Dsml) {
              return dsmlFormatHandler;
          } else if (source instanceof Ldif) {
              return ldifFormatHandler;
          } else {
              return null;
          }
      }
docs: Determine which format handler to use for a source file. If the source file is DSML then {@link #dsmlFormatHandler}
  will be used and if it is LDIF then {@link #ldifFormatHandler}.
  
  @param source Describes the source file.
  @return The appropriate format handler or {@code null} if the source is not supported.