public Map<NotificationType, NotificationInterval> getNotificationDelays(final String user) {
//FIXME: everything on this path can be null
final Collection<PropertyValue> valueCollection = MetaProjectManager.getManager().getMetaProject().getUser(user).getPropertyValues();
final Map<NotificationType, NotificationInterval> returnValue = new HashMap<NotificationType, NotificationInterval>();
for (PropertyValue propertyValue : valueCollection) {
final NotificationType type = NotificationType.fromString(propertyValue.getPropertyName());
if (type != null) {
returnValue.put(type, NotificationInterval.fromString(propertyValue.getPropertyValue()));
}
}
return returnValue;