code: public ProvFormat getTypeForFormat(String format) {
          ProvFormat result;
          // try as mimetype and then as an extension
          result = mimeTypeRevMap.get(format);
          if (result == null)
              result = extensionRevMap.get(format);
          return result;
      }
docs: Get a {@link ProvFormat} given a format string
  @param format the format for which the {@link ProvFormat} is sought
  @return a {@link ProvFormat}