root.addAppender(new ConsoleAppender(new PatternLayout("%x%m%n")));
InitialContext ctx = new InitialContext();
SRPServerInterface server = (SRPServerInterface) ctx.lookup(serviceName);
System.out.println("Found SRPServerInterface, "+server);
SRPParameters params = server.getSRPParameters(username);
System.out.println("Found params for username: " + username);
SRPClientSession client = new SRPClientSession(username, password, params);
byte[] A = client.exponential();
byte[] B = server.init(username, A);
System.out.println("Sent A public key, got B public key");