class ExternalSchemes {

  public static ExternalId isinSecurityId(final String code) {
    ArgumentChecker.notNull(code, "code");
    if (code.length() == 0) {
      throw new IllegalArgumentException("ISIN code is invalid: " + code);
    }
    //    if (code.matches("[A-Z]{2}[A-Z0-9]{9}[0-9]") == false) {
    //      throw new IllegalArgumentException("ISIN code is invalid: " + code);
    //    }
    return ExternalId.of(ISIN, code);
  }

  protected  ExternalSchemes();

}