code: public static CmsUgcSessionQueue createQueue(CmsUgcConfiguration config) {
  
          CmsUgcSessionQueue queue = new CmsUgcSessionQueue(
              config.needsQueue(),
              config.getQueueInterval().isPresent() ? config.getQueueInterval().get().longValue() : 0,
              config.getMaxQueueLength().isPresent() ? config.getMaxQueueLength().get().intValue() : Integer.MAX_VALUE);
          return queue;
      }
docs: Creates a session queue based on the given configuration.<p>
  
  @param config the configuration for which to create the session queue
  @return the newly created session queue