final String rootName = actor.getName();
LOG.info("Registering actor {} at root {}", actor, rootName);
final Store store = grid.store();
StoreTransaction txn = store.beginTransaction();
lock.lock();
try {
try {
final long root = store.getRoot(rootName, globalId != null ? (Long) globalId : -1, txn);
// assert globalId == null || ((Long) globalId) == root; -- it's OK to replace the actor's globalId -- until it's too late