/** * Get the type for the given tag. * * @param aTag * a tag. * @return the type * @throws IllegalStateException * if the type could not be located */ public Type getTagType(String aTag) { String type = getTagTypeName(aTag); Type uimaType = typeSystem.getType(type); if (uimaType == null) { throw new IllegalStateException("Type [" + type + "] mapped to tag [" + aTag + "] is not defined in type system"); } return uimaType; }