final GuidedDecisionTree model = GuidedDecisionTreeXMLPersistence.getInstance().unmarshal( content );
final Project project = projectService.resolveProject( Paths.convert( path ) );
final Package pkg = projectService.resolvePackage( Paths.convert( path ) );
final DefaultIndexBuilder builder = new DefaultIndexBuilder( project,
pkg );
final GuidedDecisionTreeModelIndexVisitor visitor = new GuidedDecisionTreeModelIndexVisitor( builder,
model );
visitor.visit();
index = KObjectUtil.toKObject( path,
builder.build() );
} catch ( Exception e ) {
logger.error( "Unable to index '" + path.toUri().toString() + "'.",
e.getMessage() );
}