Starting refactoring, in clase GenericBeanDao.