checker.Errors.clear();
checker.Warnings.clear();
checker.Notices.clear();
ThingMLModel model = (ThingMLModel) resource.getContents().get(0);
checker.do_generic_check(model);
<BUG>checker.printErrors();

checker.printWarnings();</BUG>
if (resource.getErrors().isEmpty())
org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(resource);

checker.Errors.clear();
checker.Warnings.clear();
checker.Notices.clear();
ThingMLModel model = (ThingMLModel) resource.getContents().get(0);
checker.do_generic_check(model);
checker.printReport();
if (resource.getErrors().isEmpty())
org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(resource);
