@staticmethod
def _transform_session_persistence(persistence, feature_compatibility):
    """Transforms session persistence into an object that will

            be processed by the templating system
        """
    return {'type': persistence.type, 'cookie_name': persistence.cookie_name}
