Solution: When generating the image through a SourceStringReader, look into the FileFormat-Parameter, e.g.reader.generateImage(new ByteArrayOutputStream(), new FileFormatOption(FileFormat.XMI_STANDARD));
XMI_STANDARD can be replaced by XMI_ARGO or XMI_STAR.