// --------------------------------------------------------------------
// Now modify the subentry by introducing an exclusion
// --------------------------------------------------------------------
Attribute subtreeSpecification = new LockableAttributeImpl( "subtreeSpecification" );
subtreeSpecification.add( "{ base \"ou=configuration\", specificExclusions { chopBefore:\"ou=services\" } }" );
ModificationItem item = new ModificationItem( DirContext.REPLACE_ATTRIBUTE, subtreeSpecification );
super.sysRoot.modifyAttributes( "cn=testsubentry", new ModificationItem[] { item } );
results = getAllEntries();
// --------------------------------------------------------------------