Added session cookie handling to the Java client module