public static void cleanEmbeddedRegistry() {
RegistryContext registryContext = RegistryContext.getBaseInstance();
if (registryContext != null) {
LogWriter logWriter = registryContext.getLogWriter();
if (logWriter != null) {
logWriter.interrupt();
}
}
}
}