Annotation annotation = (Annotation) constructor.newInstance(nxmlDocumentParser.cas); if (annotation instanceof de.julielab.jcore.types.Annotation) ((de.julielab.jcore.types.Annotation) annotation).setComponentId(PMCReader.class.getName()); return annotation; } catch (NoSuchMethodException | SecurityException | ClassNotFoundException | InstantiationException