@Bean
    public ListFactoryBean userDnList() {
        ListFactoryBean bean = new ListFactoryBean();
        bean.setTargetListClass(ArrayList.class);
        // TODO Add values to this list to allow more distinguished name patterns.
        //      If preferable, ldap.dn can be removed when there is more than one value to avoid confusion.
        List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}",
                "cn={0},OU=WCT users,DC=webcurator,DC=org") //,
                // TODO CONFIGURATION
                //"cn={0},OU=WCT users,DC=webcurator,DC=org",
                //"cn={0},OU=WCT users,DC=webcurator,DC=org"
        );
        bean.setSourceList(sourceList);
        return bean;
    }
@Bean
    public ListFactoryBean userDnList() {
        ListFactoryBean bean = new ListFactoryBean();
        bean.setTargetListClass(ArrayList.class);
       
       
        List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}",
                "cn={0},OU=WCT users,DC=webcurator,DC=org")
               
               
               
        );
        bean.setSourceList(sourceList);
        return bean;
    }
@bean public listfactorybean userdnlist() { listfactorybean bean = new listfactorybean(); bean.settargetlistclass(arraylist.class); list<string> sourcelist = new arraylist<string>(arrays.aslist("${ldap.dn}", "cn={0},ou=wct users,dc=webcurator,dc=org") ); bean.setsourcelist(sourcelist); return bean; }