public void loadLdif( URL url ) throws URISyntaxException {
File file = new File( url.toURI() );
LdifFileLoader loader = new LdifFileLoader(
directory.getAdminSession(), file, null, Thread.currentThread().getContextClassLoader() );
loader.execute();
}
private static boolean deleteDir( File dir ) {
if( dir.isDirectory() ) {
String[] children = dir.list();