public Object translateFromDbObject(Object o) {
   if (o instanceof Company) {
     Bank bank = new Bank();
     bank.setId(((Company) o).getId());
     bank.setName(((Company) o).getName());
     return bank;
   } else {
     return o;
   }
 }