docs: public static Buffer getQueue(int size) {
  
          if (CmsLog.INIT.isInfoEnabled()) {
              CmsLog.INIT.info(
                  Messages.get().getBundle().key(Messages.INIT_PUBLISH_HISTORY_SIZE_SET_1, new Integer(size)));
          }
  
          return BufferUtils.synchronizedBuffer(TypedBuffer.decorate(new CircularFifoBuffer(size) {
  
              /** The serialization version id constant. */
              private static final long serialVersionUID = -6257542123241183114L;
  
              /**
               * Called when the queue is full to remove the oldest element.<p>
               *
               * @see org.apache.commons.collections.buffer.BoundedFifoBuffer#remove()
               */
              @Override
              public Object remove() {
  
                  CmsPublishJobInfoBean publishJob = (CmsPublishJobInfoBean)super.remove();
                  try {
                      OpenCms.getPublishManager().getEngine().getPublishHistory().remove(publishJob);
                  } catch (CmsException exc) {
                      if (LOG.isErrorEnabled()) {
                          LOG.error(exc.getLocalizedMessage(), exc);
                      }
                  }
                  return publishJob;
              }
          }, CmsPublishJobInfoBean.class));
      }