@Override
 public List<Permission> getAllPermissions() {
   log.debug("getAllPermissions()");
   return repository.findAll();
 }
 @Override
 public Permission get(Long id) {
   log.debug("get(id:{})", id);
   return repository.findOne(id);
 }
 @Override
 public Permission getPermissionByName(String scopeName) {
   log.debug("getPermissionByName(name:{})", scopeName);
   return repository.findByName(scopeName);
 }