try {
TypeSystemDescription tsd = new TypeSystemDescription_impl();
CAS dummyCas = CasCreationUtils.createCas(tsd, null, null);
XmiCasDeserializer.deserialize(new FileInputStream(selected), dummyCas, true);
html = dummyCas.getDocumentText();
dummyCas.release();
} catch (ResourceInitializationException e) {
RutaCasEditorPlugin.error(e);
} catch (SAXException e) {
RutaCasEditorPlugin.error(e);
}