class LoaderUtils {

  public static Period parsePeriod(String str) {
    try {
      String prefixed = str.startsWith("P") ? str : "P" + str;
      return Period.parse(prefixed);

    } catch (DateTimeParseException ex) {
      throw new IllegalArgumentException("Unknown period format: " + str);
    }
  }

  private  LoaderUtils();

}