}
}
private <T extends DBInterface> T getObject(Long id, Class<T> clazz) {
Map<Long, DBInterface> simpleDao = simpleDaos.get(clazz);
DBInterface obj = simpleDao.get(id);
if (obj == null) {
try {
obj = clazz.newInstance();
// obj.set(id) will be done in attach of the 'real dao'
simpleDao.put(id, obj);