codeBlock.addStatement("throw new gsonpath.JsonFieldMissingException(\"Mandatory " +
"JSON element '$L' was null for class '$L'\")",
fieldPathInfo.jsonPath,
fieldInfo.getParentClassName());
}
<BUG>codeBlock.endControlFlow(); // if
} else {</BUG>
GsonFieldTree nextLevelMap = (GsonFieldTree) value;
if (nextLevelMap.size() == 0) {
callback.onNodeEmpty();

codeBlock.addStatement("throw new gsonpath.JsonFieldMissingException(\"Mandatory " +
"JSON element '$L' was null for class '$L'\")",
fieldPathInfo.jsonPath,
fieldInfo.getParentClassName());
}
codeBlock.endControlFlow(); // if
}
} else {
GsonFieldTree nextLevelMap = (GsonFieldTree) value;
if (nextLevelMap.size() == 0) {
callback.onNodeEmpty();
