public static void main(String[] args) throws UnsupportedEncodingException, XMLStreamException {
        if (args.length < 1) {
        	usage();
        }

        //user input arguments
	    String relations;
	    String attributes = null;
	    String fileName = null;
        
	    relations = args[0];
	    for (int i = 1; i < args.length; i++) {
	    	if (args[i].equals("-attr")) {
	    		i++;
	    		attributes = args[i];
	    	}
	    	else if (args[i].equals("-out")) {
	    		i++;
	    		fileName = args[i];
	    	}
	    	else if (args[i].equals("-username")) {
	    		i++;
	    		USERNAME = args[i];
	    	}
	    	else if (args[i].equals("-password")) {
	    		i++;
	    		PASSWORD = args[i];
	    	}
	    	else if (args[i].equals("-webserver")) {
	    		i++;
	    		BASE_URL = args[i];
	    	}
	    	
	    }
	    
		GetRelationInfo c = new GetRelationInfo();
	    String response = null;

	    response = c.sendRequestAndGetServerResponse(relations, attributes);
	    
	    if (fileName != null)
	    	//XML output file specified.
	    	printXMLResponseToFile(fileName, response);
	    else
	    	//Parse and display on console
		    parseMetadataXMLResponseAndDisplayOnConsole(response);
	}