Program: 9054
Project: 9054
Buggy source:
@Override public void init(javax.security.auth.Subject subject,Map sharedState,Map options){
  for (  Object key : options.keySet()) {
    String keyStr=(String)key;
    if (OPTIONS_MAP.containsKey(keyStr) && CollectionHelper.getMapAttr(options,keyStr) != null) {
      if (((String)key).equalsIgnoreCase(BINDING)) {
        String bindingTmp=CollectionHelper.getMapAttr(options,keyStr);
        params.put(OPTIONS_MAP.get(keyStr),Collections.singletonList(bindingTmp.substring(bindingTmp.lastIndexOf("String_Node_Str") + 1)));
      }
 else {
        params.put(OPTIONS_MAP.get(keyStr),Collections.singletonList(CollectionHelper.getMapAttr(options,keyStr)));
      }
    }
  }
  nameIDFormat=CollectionHelper.getMapAttr(options,NAME_ID_FORMAT);
  entityName=CollectionHelper.getMapAttr(options,ENTITY_NAME);
  metaAlias=CollectionHelper.getMapAttr(options,META_ALIAS);
  reqBinding=CollectionHelper.getMapAttr(options,REQ_BINDING);
  localChain=CollectionHelper.getMapAttr(options,LOCAL_CHAIN);
  singleLogoutEnabled=CollectionHelper.getBooleanMapAttr(options,SLO_ENABLED,false);
  sloRelayState=CollectionHelper.getMapAttr(options,SLO_RELAY_STATE);
  metaManager=SAML2Utils.getSAML2MetaManager();
  realm=DNMapper.orgNameToRealmName(getRequestOrg());
  bundle=amCache.getResBundle(BUNDLE_NAME,getLoginLocale());
  String authLevel=CollectionHelper.getMapAttr(options,AUTHLEVEL);
  if (authLevel != null) {
    try {
      setAuthLevel(Integer.parseInt(authLevel));
    }
 catch (    Exception e) {
      DEBUG.error("String_Node_Str",authLevel,e);
    }
  }
}

Fixed version (ground truth):
@Override public void init(javax.security.auth.Subject subject,Map sharedState,Map options){
  for (  Object key : options.keySet()) {
    String keyStr=(String)key;
    if (OPTIONS_MAP.containsKey(keyStr) && CollectionHelper.getMapAttr(options,keyStr) != null) {
      if (((String)key).equalsIgnoreCase(BINDING)) {
        String bindingTmp=CollectionHelper.getMapAttr(options,keyStr);
        params.put(OPTIONS_MAP.get(keyStr),Collections.singletonList(bindingTmp.substring(bindingTmp.lastIndexOf("String_Node_Str") + 1)));
      }
 else {
        params.put(OPTIONS_MAP.get(keyStr),Collections.singletonList(CollectionHelper.getMapAttr(options,keyStr)));
      }
    }
  }
  nameIDFormat=CollectionHelper.getMapAttr(options,NAME_ID_FORMAT);
  entityName=CollectionHelper.getMapAttr(options,ENTITY_NAME);
  metaAlias=CollectionHelper.getMapAttr(options,META_ALIAS);
  reqBinding=CollectionHelper.getMapAttr(options,REQ_BINDING);
  binding=CollectionHelper.getMapAttr(options,BINDING);
  localChain=CollectionHelper.getMapAttr(options,LOCAL_CHAIN);
  singleLogoutEnabled=CollectionHelper.getBooleanMapAttr(options,SLO_ENABLED,false);
  sloRelayState=CollectionHelper.getMapAttr(options,SLO_RELAY_STATE);
  metaManager=SAML2Utils.getSAML2MetaManager();
  realm=DNMapper.orgNameToRealmName(getRequestOrg());
  bundle=amCache.getResBundle(BUNDLE_NAME,getLoginLocale());
  String authLevel=CollectionHelper.getMapAttr(options,AUTHLEVEL);
  if (authLevel != null) {
    try {
      setAuthLevel(Integer.parseInt(authLevel));
    }
 catch (    Exception e) {
      DEBUG.error("String_Node_Str",authLevel,e);
    }
  }
}