void init(final String shardName, final YangInstanceIdentifier treeId) {
   Future<ActorRef> findFuture = actorContext.findLocalShardAsync(shardName);
   findFuture.onComplete(
       new OnComplete<ActorRef>() {
         @Override
         public void onComplete(final Throwable failure, final ActorRef shard) {
           if (failure instanceof LocalShardNotFoundException) {
             LOG.debug(
                 "No local shard found for {} - DataTreeChangeListener {} at path {} "
                     + "cannot be registered",
                 shardName,
                 getInstance(),
                 treeId);
           } else if (failure != null) {
             LOG.error(
                 "Failed to find local shard {} - DataTreeChangeListener {} at path {} "
                     + "cannot be registered: {}",
                 shardName,
                 getInstance(),
                 treeId,
                 failure);
           } else {
             doRegistration(shard, treeId);
           }
         }
       },
       actorContext.getClientDispatcher());
 }