public Type getType() {
    try {
      return XPathType.valueOf(myTypeString.toUpperCase(Locale.ENGLISH));
    } catch (IllegalArgumentException e) {
      return new ObjectType(myTypeString);
    }
  }
public Type getType()