@Override
protected <T> void putValueImpl(String key, T value, PreferenceKeyMetadata<T> metadata) throws UnsupportedDataTypeException, PreferencesException
{
if (!isDataTypeSupported(metadata))
throw new UnsupportedDataTypeException(metadata.getDataType());
putNativeValue(key, valueDataType.cast(value));
}