Creating a Java client wrapper class