public List<URL> exec(XtextResource resource) throws Exception {
List<URL> extraPaths = new ArrayList<URL>();
EList<EObject> contents = resource.getContents();
if (!contents.isEmpty()) {
URI uri = resource.getURI();
IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(uri.segment(1));
IJavaProject jp = JavaCore.create(p);
EObject rootObject = contents.get(0);
if (rootObject instanceof Model) {
ComponentDefinition def = ((Model) rootObject).getComponentDef();