String password = (String)options.valueOf("password");
String jnpURL = "jnp://" + host + ":" + port;
ProfileServiceConnectionProvider connectionProvider =
new RemoteProfileServiceConnectionProvider(jnpURL, username, password);
ProfileServiceConnection connection = connectionProvider.connect();
client.setConnection(connection);
client.setHost(host);
client.setPort(port);
client.getPrintWriter().println("Connected.");
return true;