class IdGenerator {

  public static List<BigInteger> generateNamespacePath(String namespacePath) {
    String[] parts = namespacePath.split(Pattern.quote("."));
    List<BigInteger> path = new ArrayList<>();

    if (parts.length == 0) {
      throw new IllegalIdentifierException("invalid namespace path");
    }

    BigInteger namespaceId = BigInteger.valueOf(0);

    for (String part : parts) {
      namespaceId = generateNamespaceId(part, namespaceId);
      path.add(namespaceId);
    }
    return path;
  }

  private  IdGenerator();

}