try {
Map<Integer, Object> results = nodeEngine.getOperationService()
.invokeOnAllPartitions(
MultiMapService.SERVICE_NAME,
new MultiMapOperationFactory(name, OperationFactoryType.KEY_SET)
);
Set<Data> keySet = new HashSet<Data>();
for (Object result : results.values()) {
if (result == null) {
continue;