code: private void setRestrictedAttributes(Map<String, String> attributes) {
  
          // Translate disabled attribute
          getModel().setDisabled("true".equals(attributes.get(DISABLED_ATTRIBUTE_NAME)));
  
          // Translate password expired attribute
          getModel().setExpired("true".equals(attributes.get(EXPIRED_ATTRIBUTE_NAME)));
  
          // Translate access window start time
          try { getModel().setAccessWindowStart(parseTime(attributes.get(ACCESS_WINDOW_START_ATTRIBUTE_NAME))); }
          catch (ParseException e) {
              logger.warn("Not setting start time of user access window: {}", e.getMessage());
              logger.debug("Unable to parse time attribute.", e);
          }
  
          // Translate access window end time
          try { getModel().setAccessWindowEnd(parseTime(attributes.get(ACCESS_WINDOW_END_ATTRIBUTE_NAME))); }
          catch (ParseException e) {
              logger.warn("Not setting end time of user access window: {}", e.getMessage());
              logger.debug("Unable to parse time attribute.", e);
          }
  
          // Translate account validity start date
          try { getModel().setValidFrom(parseDate(attributes.get(VALID_FROM_ATTRIBUTE_NAME))); }
          catch (ParseException e) {
              logger.warn("Not setting user validity start date: {}", e.getMessage());
              logger.debug("Unable to parse date attribute.", e);
          }
  
          // Translate account validity end date
          try { getModel().setValidUntil(parseDate(attributes.get(VALID_UNTIL_ATTRIBUTE_NAME))); }
          catch (ParseException e) {
              logger.warn("Not setting user validity end date: {}", e.getMessage());
              logger.debug("Unable to parse date attribute.", e);
          }
  
          // Translate timezone attribute
          getModel().setTimeZone(TimeZoneField.parse(attributes.get(TIMEZONE_ATTRIBUTE_NAME)));
  
      }
docs: Stores all restricted (privileged) attributes within the underlying user
  model, pulling the values of those attributes from the given Map.
  
  @param attributes
  The Map to pull all restricted attributes from.