List allowedValues = new ArrayList();
String[] allowedArray = StringUtils.split(staticProperty.getProperty("allowedvalues"), ",");
for (int j = 0; j < allowedArray.length && allowedArray != null; j++) {
String allowedStr = allowedArray[j];
try {
DataPropertyFormatter dpf = DataFormatterRegistry.lookup().getPropertyFormatter(propertyId);
allowedValues.add(dpf.parsePropertyValue(getStaticPropertyClass(propertyId), allowedStr));
} catch (Exception e) {
log.error("Can not parse static prpoerty allowed value: " + allowedStr);
continue;
}
}