@SuppressWarnings("unchecked")
 public Integer getAllowedNumbByCompany(Long companyId) {
   List<Subsciber> subscibers = subsciberDao.find(QUERY_BY_TENANT_HQL, companyId, false);
   Integer num = 0;
   for (Subsciber sb : subscibers) {
     if (num < sb.getUseNumber()) {
       num = sb.getUseNumber();
     }
   }
   return num;
 }
 public void deleteSubsciber(Long id) {
   Subsciber subsciber = subsciberDao.get(id);
   subsciber.setDeleted(true);
   subsciberDao.save(subsciber);
 }