public static void main(final String args[]) {
    	
    	/* Create and display the form */
	    if(args.length != 0) {
	    	String name = args[0];

	    	try {
		    	QueryDefinition query = Settings.getInstance().getQuery(name);
		    	Response response = query.execute();
		    	System.out.print(response.getRawValue());
	    	} catch(Exception e) {
	    		System.err.print(e.getMessage());
	    	}
	    } else {
	        invokeLater(new Runnable() {
	            public void run() {
	                new MainForm(args).setVisible(true);
	            }
	        });
    	}
    }