public Authority removeAuthory(Authority a) throws NotFoundException{
if(a==null)
throw new NullPointerException("authory should not be null");
Authority authory=authoryDao.find(a.getId());
if(authory==null)
throw new NotFoundException();
authoryDao.removeAuthroy(a);
return a;
}