.get(getText("entity.name.label"))));
String typeID = row.get(getText("account.type_id.label"));
if (CommonUtil.isNullOrEmpty(typeID)) {
account.setAccount_type(null);
} else {
AccountType accountType = accountTypeService
.getEntityById(AccountType.class,
Integer.parseInt(typeID));
account.setAccount_type(accountType);
}
String accountLevelID = row
.get(getText("entity.account_level_id.label"));
if (CommonUtil.isNullOrEmpty(accountLevelID)) {
account.setAccount_type(null);
} else {
AccountLevel accountLevel = accountLevelService
.getEntityById(AccountLevel.class,
Integer.parseInt(accountLevelID));
account.setAccount_level(accountLevel);
}
String currencyID = row
.get(getText("entity.currency_id.label"));
if (CommonUtil.isNullOrEmpty(currencyID)) {
account.setCurrency(null);
} else {
Currency currency = currencyService.getEntityById(
Currency.class, Integer.parseInt(currencyID));
account.setCurrency(currency);
}
String capitalID = row
.get(getText("entity.capital_id.label"));
if (CommonUtil.isNullOrEmpty(capitalID)) {
account.setCapital(null);
} else {
Capital capital = capitalService.getEntityById(
Capital.class, Integer.parseInt(capitalID));
account.setCapital(capital);
}
String annualRevenueID = row
.get(getText("entity.annual_revenue_id.label"));
if (CommonUtil.isNullOrEmpty(annualRevenueID)) {
account.setAnnual_revenue(null);
} else {
AnnualRevenue annualRevenue = annualRevenueService
.getEntityById(AnnualRevenue.class,
Integer.parseInt(annualRevenueID));
account.setAnnual_revenue(annualRevenue);
}
String companySizeID = row
.get(getText("entity.company_size_id.label"));
if (CommonUtil.isNullOrEmpty(companySizeID)) {
account.setCompany_size(null);
} else {
CompanySize companySize = companySizeService
.getEntityById(CompanySize.class,
Integer.parseInt(companySizeID));
account.setCompany_size(companySize);
}
String accountTypeID = row
.get(getText("entity.account_type_id.label"));
if (CommonUtil.isNullOrEmpty(accountTypeID)) {
account.setAccount_type(null);
} else {
AccountType accountType = accountTypeService
.getEntityById(AccountType.class,
Integer.parseInt(accountTypeID));
account.setAccount_type(accountType);
}
String industryID = row