code: public byte[] remove() throws Exception
      {
          byte[] bytes = internalElement(true, null);
          if ( bytes == null )
          {
              throw new NoSuchElementException();
          }
          return bytes;
      }
docs: Attempts to remove the head of the queue and return it.
  
  @return The former head of the queue
  @throws Exception errors
  @throws NoSuchElementException if the queue is empty