public void checkListResolve(Collection array) { if (this.resolveStatus != 1) { return; } if (array instanceof List) { int index = array.size() - 1; List list = (List) array; ResolveTask task = getLastResolveTask(); task.setFieldDeserializer(new ListResolveFieldDeserializer(this, list, index)); task.setOwnerContext(this.context); setResolveStatus(0); return; } task = getLastResolveTask(); task.setFieldDeserializer(new CollectionResolveFieldDeserializer(this, array)); task.setOwnerContext(this.context); setResolveStatus(0); }