EObject parseResult = null;
EList<Diagnostic> errors = null;
EList<Diagnostic> warnings = null;
try {
Lexer lexer = new Lexer(input);
tokens = lexer.tokenizeToStrings();
InputStream in = getAsStream("" + input);
URI uri = URI.createURI("mytestmodel." + getCurrentFileExtension());
XtextResource resource = doGetResource(in, uri);
parseResult = getModel(resource);
errors = resource.getErrors();