// add a default search context to the configuration
classLoaderDefaultSearchContextConfig.put( new BasicAttribute( "classLoaderDefaultSearchContext", "ou=system" ) );
// add the configuration entry to the DIT
ServerLdapContext configContext = ( ServerLdapContext ) defaultContext.lookup( "ou=configuration" );
configContext.createSubcontext( "cn=classLoaderDefaultSearchContext", classLoaderDefaultSearchContextConfig );
// create a class holder entry and add it to the DIT
Attributes attributes = new BasicAttributes( "objectClass", "top", true );
attributes.get( "objectClass" ).add( "javaClass" );
attributes.put( "fullyQualifiedJavaClassName", "HelloWorld" );