public Integer countQueueElementsGroupByBundleId() throws DotPublisherException {
try{
DotConnect dc = new DotConnect();
dc.setSQL(COUNTENTRIESGROUPED);
return Integer.parseInt(dc.loadObjectResults().get(0).get("count").toString());
}catch(Exception e){
Logger.error(PublisherUtil.class,e.getMessage(),e);
throw new DotPublisherException("Unable to get list of elements with error:"+e.getMessage(), e);
}
}