Converting BasicResponse to Java.