callerArgs.append(String.format("%s, ", JniUtils.generateCppVariableName(cppBean, null, idx)));
}
callerArgs.append(JniUtils.getClassDefObjectVariableName(returnedBean));
callerArgs.append(", jniEnv");
CppBean cppbean = functionSignatureMapper.returnTypeMapper().cppType();
<BUG>String retObjectName = generateFunctionReturnObjectName(cppbean);
String retObjFuncCallStmt = String.format("\t%s *%s = %s(%s);\n", cppbean.getCppClassName(), retObjectName,
</BUG>
functionSignatureMapper.functionNameMapper().cppName(), callerArgs.toString());
String result = String.format("\t%s %s = %s->getJavaObject();\n", "jobject", generateReturnObjectName(cppbean), retObjectName);

callerArgs.append(String.format("%s, ", JniUtils.generateCppVariableName(cppBean, null, idx)));
}
callerArgs.append(JniUtils.getClassDefObjectVariableName(returnedBean));
callerArgs.append(", jniEnv");
CppBean cppbean = functionSignatureMapper.returnTypeMapper().cppType();
String retObjectName = generateFunctionReturnObjectName(cppbean);
String retType = JniUtils.wrapInSharedPtr(cppbean.getCppClassName(), PASS_BY_VALUE);
String retObjFuncCallStmt = String.format("\t%s %s = %s(%s);\n", retType, retObjectName,
functionSignatureMapper.functionNameMapper().cppName(), callerArgs.toString());
String result = String.format("\t%s %s = %s->getJavaObject();\n", "jobject", generateReturnObjectName(cppbean), retObjectName);
