result = modelAndJsonView.getModel();
}
if (methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
&& !ExtDirectFormLoadResult.class.isAssignableFrom(result.getClass())) {
ExtDirectFormLoadResult formLoadResult = new ExtDirectFormLoadResult(result);
if (result instanceof JsonViewHint) {
formLoadResult.setJsonView(((JsonViewHint) result).getJsonView());
}
result = formLoadResult;
} else if ((methodInfo.isType(ExtDirectMethodType.STORE_MODIFY) || methodInfo
.isType(ExtDirectMethodType.STORE_READ))
&& !ExtDirectStoreReadResult.class.isAssignableFrom(result.getClass())