GuacamoleProperties.GUACD_HOSTNAME);
int port = GuacamoleProperties.getProperty(
GuacamoleProperties.GUACD_PORT);
GuacamoleConfiguration config = new GuacamoleConfiguration();
config.setProtocol("vnc");
config.setParameter("hostname", "localhost");
config.setParameter("port", "5901");
config.setParameter("password", "potato");
GuacamoleSocket socket = new ConfiguredGuacamoleSocket(
new InetGuacamoleSocket(hostname, port),
config
);