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

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