case PropertyType.BOOLEAN:
return BooleanPropertyState.booleanProperty(name, (Boolean) value);
case PropertyType.DECIMAL:
return DecimalPropertyState.decimalProperty(name, (BigDecimal) value);
default:
return new GenericPropertyState(name, (String) value, type);
}
}
}