public String generateMethodBody(CtMethod ctMethod, boolean wasNative, boolean wasAbstract, CtClass returnCtClass, Type returnType, boolean aStatic, boolean shouldGenerateCallToSuper) throws NotFoundException {
String methodBody;
if (wasAbstract) {
methodBody = returnType.isVoid() ? "" : "return " + returnType.defaultReturnString() + ";";
} else {
methodBody = generateMethodBody(ctMethod, returnCtClass, returnType, aStatic, shouldGenerateCallToSuper);
}
if (wasNative) {
methodBody += returnType.isVoid() ? "" : "return " + returnType.defaultReturnString() + ";";
}
return methodBody;
}