code: public static SessionProvider createProvider(List<AccessControlEntry> accessList)
     {
        if (accessList == null || accessList.isEmpty())
        {
           return createAnonimProvider();
        }
        else
        {
           HashSet<MembershipEntry> membershipEntries = new HashSet<MembershipEntry>();
  
           for (AccessControlEntry ace : accessList)
           {
              membershipEntries.add(ace.getMembershipEntry());
           }
           return new SessionProvider(membershipEntries);
        }
  
     }
docs: Gives a {@link SessionProvider} for a given list of {@link AccessControlEntry}.
  
  @param accessList list of {@link AccessControlEntry}
  @return a {@link SessionProvider} allowing to provide sessions with the
  corresponding ACL.