@SuppressWarnings({ "unchecked", "rawtypes" })
public String getLabel(Object object)
{
final ClassPropertyAdapter classPropertyAdapter = this.propertyAccess.getAdapter(object);
final PropertyAdapter propertyAdapter = classPropertyAdapter
.getPropertyAdapter(labelProperty);
final ValueEncoder encoder = this.valueEncoderSource.getValueEncoder(propertyAdapter
.getType());
final Object label = propertyAdapter.get(object);
return encoder.toClient(label);
}