@Override
 public AeroGearUser get(String id) throws RuntimeException {
   User user = identityManager.getUser(id);
   if (user == null) {
     throw new RuntimeException("User do not exist");
   }
   return Converter.convertToAerogearUser(identityManager.getUser(id));
 }
 @Override
 public List<AeroGearUser> findAllByRole(String role) {
   List aerogearUsers = new ArrayList();
   IdentityQuery<User> query = identityManager.createQuery(User.class);
   query.setParameter(User.HAS_ROLE, new String[] {role});
   List<User> result = query.getResultList();
   for (User user : result) {
     aerogearUsers.add(Converter.convertToAerogearUser(user));
   }
   return aerogearUsers;
 }