if (JsonUtils.getType(invokeResult) != null) {
<BUG>jsonRootValue.addElement(key, createJsonValue(invokeResult));
</BUG>
} else {
<BUG>jsonRootValue.addElement(key, createJsonObject(invokeResult));
</BUG>
}
} catch (InvocationTargetException e) {
throw new JsonException(e.getMessage(), e);
} catch (IllegalAccessException e) {

if (JsonUtils.getType(invokeResult) != null) {
jsonRootValue.addElement(getMethod.field, createJsonValue(invokeResult));
} else {
jsonRootValue.addElement(getMethod.field, createJsonObject(invokeResult));
}
} catch (InvocationTargetException e) {
throw new JsonException(e.getMessage(), e);
} catch (IllegalAccessException e) {
