if (path != null) {
Method getCompilationUnitMethod = path.getClass().getMethod("getCompilationUnit");
Object cu = getCompilationUnitMethod.invoke(path);
Method getSourceFileMethod = cu.getClass().getMethod("getSourceFile");
JavaFileObject file = (JavaFileObject)getSourceFileMethod.invoke(cu);
URI uri = file.toUri();
log.info("Resolved uri " + uri + " for package " + context.getPackageName());
File f = new File(uri.getPath());
if (f.exists() && f.isFile()) {
File dir = f.getParentFile().getParentFile();
javax.lang.model.element.Name name = element.getQualifiedName();