Some structure for the Java client/agent