private Object getQueueRecord(long qid) {
   return IDbQueueFactory.Helper.getQueue(qid).get(0L);
 }
 private boolean isEmptyQueue(long qid) {
   return null == IDbQueueFactory.Helper.getQueue(qid).peek(0L);
 }