try {
String tsDesc = RutaProjectUtils.getTypeSystemDescriptorPath(location,
resource.getProject()).toPortableString();
defaultTypeSystemDescription = UIMAFramework.getXMLParser().parseTypeSystemDescription(
new XMLInputSource(new File(tsDesc)));
defaultTypeSystemDescription.resolveImports();
TypeDescription[] systemTypes = defaultTypeSystemDescription.getTypes();
Set<String> set = new HashSet<String>();
for (TypeDescription typeDescription : systemTypes) {
set.add(typeDescription.getName());
}