relates to issue-10 in  java client : updating method calls due to api change to use builders instead of constructors explicitely