@Override
 @Transactional(readOnly = true)
 public int count(ResourceSearchBean searchBean) {
   // final ResourceEntity entity =
   // resourceSearchBeanConverter.convert(searchBean);
   return resourceDao.count(searchBean);
 }
 @Override
 @Transactional(readOnly = true)
 public int getNumOfParentResources(String resourceId) {
   final ResourceEntity example = new ResourceEntity();
   final ResourceEntity child = new ResourceEntity();
   child.setId(resourceId);
   example.addChildResource(child);
   return resourceDao.count(example);
 }