}
private void logModules(Report report) {
for (ModuleInfo m : Lookup.getDefault().lookupAll(ModuleInfo.class)) {
String moduleStr = "";
SpecificationVersion specVersion = m.getSpecificationVersion();
if (specVersion != null) {
moduleStr = m.getCodeName() + " [" + specVersion.toString() + "]";
} else {
moduleStr = m.getCodeName();
}
if (m.isEnabled()) {
report.addEnabledModule(moduleStr);