code: public ActorRef actorOf(Props props, String path) {
          String dispatcherId = props.getDispatcher() == null ? DEFAULT_DISPATCHER : props.getDispatcher();
  
          AbsActorDispatcher mailboxesDispatcher;
          synchronized (dispatchers) {
              if (!dispatchers.containsKey(dispatcherId)) {
                  throw new RuntimeException("Unknown dispatcherId '" + dispatcherId + "'");
              }
              mailboxesDispatcher = dispatchers.get(dispatcherId);
          }
  
          return mailboxesDispatcher.referenceActor(path, props);
      }
docs: Creating or getting existing actor from actor props
  
  @param props Actor Props
  @param path  Actor Path
  @return ActorRef