client.invokeContactManager(forOwner, username, password, nrOfCalls);
client.invokeContactManager(new UsernamePasswordAuthenticationToken( username, password), nrOfCalls); System.exit(0);
    public static void main(String[] args) {        if ((args.length == 0) || "".equals(args[0])) {            System.out.println(                "You need to specify the owner to request contacts for, the user ID to use, the password to use, and optionally a number of calls, e.g. for user marissa: "                + "'client marissa marissa koala' for a single call per service or 'client marissa marissa koala 10' for 10 calls each");        } else {            String forOwner = args[0];            String username = args[1];            String password = args[2];            int nrOfCalls = 1;            if ((args.length > 3) && !"".equals(args[3])) {                nrOfCalls = Integer.parseInt(args[3]);            }            ListableBeanFactory beanFactory = new FileSystemXmlApplicationContext(                    "clientContext.xml");            ClientApplication client = new ClientApplication(beanFactory);            client.invokeContactManager(forOwner, username, password, nrOfCalls);        }    }