private Node convertClassDeclaration(String className, String sourceCode) {
JavaCompilation compilation = CompilationUtils.compileSource(sourceCode);
TypeDeclaration type = CompilationUtils.findType(compilation.getCompilationUnit(), className);
Node root = new Node(JavaEntityType.CLASS, className);
root.setEntity(new SourceCodeEntity(className, JavaEntityType.CLASS, new SourceRange(
type.declarationSourceStart,
type.declarationSourceEnd)));
sDeclarationConverter.initialize(root, compilation.getScanner());
type.traverse(sDeclarationConverter, (ClassScope) null);
return root;