code: public static Buffer getQueue() {
  
          return BufferUtils.synchronizedBuffer(TypedBuffer.decorate(new UnboundedFifoBuffer() {
  
              /** The serialization version id constant. */
              private static final long serialVersionUID = 606444342980861724L;
  
              /**
               * 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();
                  return publishJob;
              }
          }, CmsPublishJobInfoBean.class));
      }
docs: Creates the buffer used as publish queue.<p>
  
  @return the queue buffer