}
public void reset(String key) throws ReadOnlyException {
// Read-only preferences cannot be reset.
if (isReadOnly(key)) {
throw new ReadOnlyException(EXCEPTIONS.getString(
"error.preference.readonly", key));
}
// Try to reset preference to the default values.
PortletPreference p = defaultPreferences.get(key);
if (p != null) {