parent.setParam2(5);
param1.put("key1",parent);
param1.put("key2","value2");
param1.put("key3",new Integer(6));
Map result = proxy.method4(param1);
ParentClass resultParent = (ParentClass) result.get("key1");
System.out.println("Parent param1 ==> " + resultParent.getParam1());
System.out.println("Parent param2 ==> " + resultParent.getParam2());
System.out.println("Key 2 ==> " + result.get("key2"));
System.out.println("Key 3 ==> " + result.get("key3"));