}
public JavaSource addSource(Reader reader, String sourceInfo) {
ModelBuilder builder = new ModelBuilder(classLibrary, docletTagFactory);
Lexer lexer = new JFlexLexer(reader);
Parser parser = new Parser(lexer, builder);
parser.setDebugLexer(debugLexer);
parser.setDebugParser(debugParser);
try {
parser.parse();
} catch (ParseException e) {
e.setSourceInfo(sourceInfo);
throw e;
}
JavaSource source = builder.getSource();