package com.trivadis.aqdemo;


import org.apache.log4j.Logger;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class ShutdownThread {
	private final Logger logger = Logger.getLogger(ShutdownThread.class);
	
	public void add(FileSystemXmlApplicationContext ctx) {
		final FileSystemXmlApplicationContext context = ctx;
		Runtime.getRuntime().addShutdownHook(new Thread() {
			@Override
			public void run() {
				context.close();
				logger.info("Migration factory terminated gracefully.");
			}
		});
	}
}

@@ -479,25 +479,19 @@
 fo(%22
-Migration factory
+Application
  ter

fix type in logger message