added MainAppServer.java by tomoaki