} else if ((methodInfo.isType(ExtDirectMethodType.STORE_MODIFY) || methodInfo
.isType(ExtDirectMethodType.STORE_READ))
&& !ExtDirectStoreResponse.class.isAssignableFrom(result.getClass())
&& configuration.isAlwaysWrapStoreResponse()) {
if (result instanceof Collection) {
result = new ExtDirectStoreResponse((Collection) result);
} else {
List responses = new ArrayList();
responses.add(result);
result = new ExtDirectStoreResponse(responses);
}
}
directResponse.setResult(result);
} else {