boolean spanPlugins = Boolean.valueOf(node.valueOf("@spanplugins")).booleanValue();
String categoryName = node.valueOf("@name");
if (!categoryName.equals("")) {
if (categoryName.equals("reporting")) {
return new ReportingDetectorFactorySelector(spanPlugins ? null : plugin);
} else if (categoryName.equals("training")) {
return new ByInterfaceDetectorFactorySelector(spanPlugins ? null : plugin, TrainingDetector.class);
} else if (categoryName.equals("interprocedural")) {
return new ByInterfaceDetectorFactorySelector(spanPlugins ? null : plugin,
InterproceduralFirstPassDetector.class);