code: protected void prepareCasResponseAttributesForViewModel(final Map<String, Object> model) {
          val service = authenticationRequestServiceSelectionStrategies.resolveService(getServiceFrom(model));
          val registeredService = this.servicesManager.findServiceBy(service);
  
          val principalAttributes = getCasPrincipalAttributes(model, registeredService);
          val attributes = new HashMap<String, Object>(principalAttributes);
  
          LOGGER.trace("Processed principal attributes from the output model to be [{}]", principalAttributes.keySet());
          val protocolAttributes = getCasProtocolAuthenticationAttributes(model, registeredService);
          attributes.putAll(protocolAttributes);
  
          LOGGER.debug("Final collection of attributes for the response are [{}].", attributes.keySet());
          putCasResponseAttributesIntoModel(model, attributes, registeredService, this.attributesRenderer);
      }
docs: Prepare cas response attributes for view model.
  
  @param model the model