public static CVRGAuthenticator returnAuthenticator(AuthenticationMethod method, String[] args){
		
		switch(method){
		case USERPASS:
			//Arguments are (username, password)
			return new UserPassAuthenticator(args[0], args[1]);
		case OPENID:
			//Arguments are (identifier, return URL)
			return new OpenIdAuthenticator(args[0], args[1]);
		case GLOBUS_REST:
			//Arguments are (username, password, url(optional), community(optional))
			return new GlobusRESTAuthenticator(args);
		}
		
		return null;		
	}