*/
@SuppressWarnings("unused")
public static void main(String[] args) throws Exception {
long start = System.currentTimeMillis();
//create a channel object
ManagedChannel channel = (ManagedChannel) ChannelCreator.createChannel(args);
//define a map name, unless one is defined as a paramters
String mapName = "MapDemo";
if ( args.length > 0 && (!args[args.length-1].startsWith("-"))) {
mapName = args[args.length-1];
}
//start the channel
channel.start(Channel.DEFAULT);
//listen for shutdown
Runtime.getRuntime().addShutdownHook(new Shutdown(channel));
//create a map demo object
new MapDemo(channel,mapName);