// read the username and properties from files
String username = System.getProperty("sgs.user", "sample");
String password = System.getProperty("sgs.password", "sample");
// create the session & login
WonderlandSession session = new WonderlandSessionImpl(serverInfo);
session.login(new LoginParameters(username, password.toCharArray()));
logger.info("Login suceeded");
// attach client
session.connect(new TestOneClient());
// wait for end-session message
waitForFinish();
}