} else if ((methodInfo.isType(ExtDirectMethodType.STORE_MODIFY) || methodInfo
.isType(ExtDirectMethodType.STORE_READ))
&& !ExtDirectStoreReadResult.class.isAssignableFrom(result.getClass())
&& configurationService.getConfiguration().isAlwaysWrapStoreResponse()) {
if (result instanceof Collection) {
result = new ExtDirectStoreReadResult((Collection) result);
} else {
result = new ExtDirectStoreReadResult(result);
}
}
directResponse.setResult(result);
} else {