SubtreeSpecificationModifier modifier = new SubtreeSpecificationModifier();
modifier.setRefinement( filter );
modifier.setMinBaseDistance( 1 );
modifier.setMaxBaseDistance( 3 );
modifier.setBase( new LdapDN( "ou=users" ) );
SubtreeSpecification ss = modifier.getSubtreeSpecification();
LdapDN apDn = new LdapDN( "ou=system" );
LdapDN entryDn = new LdapDN( "ou=users,ou=system" );
ServerEntry entry = new DefaultServerEntry( registries, entryDn );;
entry.put( "objectClass", "person" );