added MainAppServer.java by tomoaki 2