code: void performPostCreationTasks()
      {
          StatusAction statusAction = new StatusAction();
          try
          {
              ResponseEvents events = CoherentManagerConnection.sendEventGeneratingAction(statusAction, 1000);
              for (ResponseEvent event : events.getEvents())
              {
                  if (event instanceof StatusEvent)
                  {
                      // do nothing. Creating the events will register the
                      // channels, which is after all what we are trying to do.
                  }
              }
  
          }
          catch (IllegalArgumentException | IllegalStateException | IOException | TimeoutException e)
          {
              logger.error(e, e);
          }
  
      }
docs: Find all the channels that came into existence before startup. This can't
  be done during the Constructor call, because it requires calls back to
  AsteriskPBX which isn't finished constructing until after the Constructor
  returns.