if (dashboardFilterProperty.isLabelProperty()) {
// Get the property allowed values.
String allowedValue = null;
List allowedValues = dashboardFilterProperty.getPropertyDistinctValues();
if (filter != null && filter.containsProperty(dashboardFilterProperty.getPropertyId())) {
List filterAllowedValues = filter.getPropertyAllowedValues(dashboardFilterProperty.getPropertyId());
if (filterAllowedValues.size() == 1) allowedValue = (String) filterAllowedValues.get(0);
}
String[] keys = new String[allowedValues.size()+2];