code: public static Oid fromToken(String oidtoken, IMetaModel meta) throws OidException {
          try {
              if (oidtoken.equals(NullOidToken)) {
                  return Null;
              }
              String[] parts = oidtoken.split(SEPARATOR);
              IAssetType type = meta.getAssetType(parts[0]);
              int id = Integer.parseInt(parts[1]);
              if (parts.length > 2) {
                  int moment = Integer.parseInt(parts[2]);
                  return new com.versionone.Oid(type, id, moment);
              }
              return new com.versionone.Oid(type, id);
          } catch (Exception e) {
              throw new OidException("Invalid OID token", oidtoken, e);
          }
      }
docs: Create an OID from a token
  @param oidtoken - token to parse
  @param meta - metamodel
  @return an Oid
  @throws OidException - if the OID cannot be created.