String resourceDescr = r.getDescr();
String resourceCode = r.getCode();
String tableName = r.getTable_name();
Integer resourceId = r.getId();
String type = r.getType();
Domain domain = DAOFactory.getDomainDAO().loadDomainByCodeAndValue(
"RESOURCE", type);
SbiDomains sbiDomains = new SbiDomains();
sbiDomains.setDomainCd(domain.getDomainCode());
sbiDomains.setDomainNm(domain.getDomainName());
sbiDomains.setValueCd(domain.getValueCd());
sbiDomains.setValueDs(domain.getValueDescription());
sbiDomains.setValueId(domain.getValueId());
sbiDomains.setValueNm(domain.getValueName());
toReturn.setColumnName(columnName);
logger.debug("SbiResource columnName setted");
toReturn.setResourceId(resourceId);
logger.debug("SbiResource ID setted");