// "Document" can be resolved to "uima.tcas.DocumentAnnotation" or "org.apache.uima.ruta.type.Document",
// we force it to the former
ambiguousTypeAlias.remove("Document");
namespaces.remove("Document");
Type documentType = cas.getTypeSystem().getType(UIMAConstants.TYPE_DOCUMENT);
addType("Document", documentType);
Type annotationType = cas.getJCas().getCasType(org.apache.uima.jcas.tcas.Annotation.type);
addType("Annotation", annotationType);
} catch (CASException e) {
UIMAFramework.getLogger(getClass()).log(SEVERE, "Cannot initialize types.", e);
} catch (InvalidXMLException e) {
UIMAFramework.getLogger(getClass()).log(SEVERE, "Cannot initialize types.", e);