/**
   * Used to refresh the service registry after the Application Context is initialized. This way any
   * services that were exported on startup will be available in the service registry once startup
   * is complete.
   */
  private void requeueMessages() {
    LOG.info("Refreshing Service Registry to export services to the bus.");
    KsbApiServiceLocator.getServiceBus().synchronizeLocalServices();

    // automatically requeue documents sitting with status of 'R'
    MessageFetcher messageFetcher = new MessageFetcher((Integer) null);
    KSBServiceLocator.getThreadPool().execute(messageFetcher);
  }