code: @Override
    public String apply(final ProfileRequestContext input) {
      if (input != null && messageSource != null) {
        final SpringRequestContext springContext = input.getSubcontext(SpringRequestContext.class);
        if (springContext != null) {
          final RequestContext springRequestContext = springContext.getRequestContext();
          final Event previousEvent = springRequestContext != null ? springRequestContext.getCurrentEvent() : null;
          if (previousEvent != null) {
            try {
              String msg = messageSource.getMessage(previousEvent.getId(), null, this.getLocale(springRequestContext));
              return this.messageSource.getMessage(msg + ".message", null, msg, this.getLocale(springRequestContext));
            }
            catch (final NoSuchMessageException e) {
              return null;
            }
          }
        }
      }
  
      return null;
    }
docs: {@inheritDoc}