class LoaderUtils {

  public static Optional<Tenor> tryParseTenor(String str) {
    if (str != null && str.length() > 1) {
      try {
        return Optional.of(Tenor.parse(str));
      } catch (RuntimeException ex) {
        // ignore
      }
    }
    return Optional.empty();
  }

  private  LoaderUtils();

}