if (collection instanceof List)
{
int i = Integer.parseInt(fqn.getLastElementAsString());
ListModifiedEvent.Operation operation = ListModifiedEvent.Operation.valueOf(data.get(POJOCACHE_OPERATION).toString());
Object value = cache.find(fqn.toString());
sendNotification(new ListModifiedEvent(createContext(event), (List) collection, operation, i, value, isLocal), matched);
}
else if (collection instanceof Set)
{
SetModifiedEvent.Operation operation = SetModifiedEvent.Operation.valueOf(data.get(POJOCACHE_OPERATION).toString());
Object value = cache.find(fqn.toString());