}
private Map<String, List<String>> loadMappingFile() throws FileNotFoundException, JAXBException {
InputSource input = new InputSource(new FileInputStream(groupMappingFilename));
JAXBContext context = JAXBContext.newInstance(Mapping.class);
Mapping localmappings = (Mapping)context.createUnmarshaller().unmarshal(input);
Map<String, List<String>> map = new HashMap<String, List<String>>(10);
Iterator<SamlToJ2EE> i = localmappings.getSamlToJ2EE().iterator();
while (i.hasNext()) {
SamlToJ2EE mapping = i.next();
if (LOG.isDebugEnabled()) {
LOG.debug(mapping.getClaim() + " mapped to "
+ mapping.getGroups().getJ2EeGroup().size() + " entries");