if (!(value != null && value.trim().length() > 0)) {
String envVariable = getPropertyString("envVariable");
AppDefinition appDef = AppUtil.getCurrentAppDefinition();
ApplicationContext appContext = AppUtil.getApplicationContext();
EnvironmentVariableDao environmentVariableDao = (EnvironmentVariableDao) appContext.getBean("environmentVariableDao");
EnvironmentVariable env = environmentVariableDao.loadById(envVariable, appDef);
int count = 0;
if (env != null && env.getValue() != null && env.getValue().trim().length() > 0) {
count = Integer.parseInt(env.getValue());