// Initialise this last as it breaks in some tests which causes
// all sorts of problems.
initializeNamespaceSwitchContentHandlerMap();
// start the e-mail sending process for abstract and unknown devices
final UnknownDevicesLoggingConfiguration unknownDevicesLogging =
getUnknownDevicesConfiguration();
if (unknownDevicesLogging != null) {
// resolve the file name to an absolute path
final String fileName = unknownDevicesLogging.getFileName();
if (fileName != null && fileName.length() > 0) {
final File file =
configContext.getConfigRelativeFile(fileName, false);
unknownDevicesLogging.setFileName(file.getAbsolutePath());
initializeUnknownDevicesLogger();
final EmailNotifierConfiguration emailNotifierConfiguration =
unknownDevicesLogging.getEmailNotifier();
if (emailNotifierConfiguration != null &&
emailNotifierConfiguration.isEnabled()) {
final EmailNotifierConfig config =
createEmailNotifierConfig(emailNotifierConfiguration);
final EmailNotifierThread thread =