public synchronized void setNotificationDelay(final String user, final NotificationType notificationType, final NotificationInterval notificationInterval) {
//FIXME: everything on this path can be null
final User userProperties = MetaProjectManager.getManager().getMetaProject().getUser(user);
String currentUserPropertyValue = userProperties.getPropertyValue(notificationType.getValue());
while (currentUserPropertyValue != null) {
userProperties.removePropertyValue(notificationType.getValue(), currentUserPropertyValue);
currentUserPropertyValue = userProperties.getPropertyValue(notificationType.getValue());
}
final NotificationTimestamp notificationTimestamp = NotificationTimestamp.fromType(notificationType);
String currentUserTimestamp = userProperties.getPropertyValue(notificationTimestamp.getValue());
if (currentUserTimestamp == null) {