code: private DefaultLdapAuthoritiesPopulator create() {
          DefaultLdapAuthoritiesPopulator populator = new DefaultLdapAuthoritiesPopulator(
                  initialDirContextFactory, groupSearchBase);
          populator.setConvertToUpperCase(convertToUpperCase);
          if (defaultRole != null) {
              populator.setDefaultRole(defaultRole);
          }
          populator.setGroupRoleAttribute(groupRoleAttribute);
          populator.setGroupSearchFilter(groupSearchFilter);
          populator.setRolePrefix(rolePrefix);
          populator.setSearchSubtree(searchSubtree);
          return populator;
      }
docs: Create a new DefaultLdapAuthoritiesPopulator object.
  
  @return a DefaultLdapAuthoritiesPopulator.