public Future prepare(NodeEngine nodeEngine) {
TxnPrepareOperation operation = new TxnPrepareOperation(name, key, ttl, threadId);
try {
int partitionId = nodeEngine.getPartitionService().getPartitionId(key);
final OperationService operationService = nodeEngine.getOperationService();
return operationService.invokeOnPartition(MultiMapService.SERVICE_NAME, operation, partitionId);
} catch (Throwable t) {
throw ExceptionUtil.rethrow(t);
}
}