code: private Map<String, Object> getRateLimitTemplateProperties(SingularityRequest request, final SingularityEmailType emailType) {
      final Builder<String, Object> templateProperties = ImmutableMap.<String, Object>builder();
  
      templateProperties.put("singularityRequestLink", mailTemplateHelpers.getSingularityRequestLink(request.getId()));
      templateProperties.put("rateLimitAfterNotifications", Integer.toString(smtpConfiguration.getRateLimitAfterNotifications()));
      templateProperties.put("rateLimitPeriodFormat", DurationFormatUtils.formatDurationHMS(smtpConfiguration.getRateLimitPeriodMillis()));
      templateProperties.put("rateLimitCooldownFormat", DurationFormatUtils.formatDurationHMS(smtpConfiguration.getRateLimitCooldownMillis()));
      templateProperties.put("emailType", emailType.name());
      templateProperties.put("requestId", request.getId());
      templateProperties.put("color", emailType.getColor());
  
      return templateProperties.build();
    }
docs: Add needed information to the rate limit email Jade context.
  @param request SingularityRequest that the rate limit email is about.
  @param emailType what the email is about.
  @return template properties to add to the Jade context.