<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <!-- ===================================================================== -->
  <!-- Configure a factory for CachingSessionDataStores                      -->
  <!-- ===================================================================== -->

  <Call name="removeBean">
    <Arg>
      <Ref refid="sessionDataStoreFactory"/>
    </Arg>
  </Call>

  <Call name="addBean">
   <Arg>
    <New class="org.eclipse.jetty.session.CachingSessionDataStoreFactory">
       <Set name="sessionStoreFactory"><Ref refid="sessionDataStoreFactory"/></Set>
       <Set name="sessionDataMapFactory"><Ref refid="sessionDataMapFactory"/></Set>
    </New>
   </Arg> 
  </Call>

</Configure>
