code: public static DirContext openContext(Hashtable<?,?> env) throws NamingException
     {
        DirContext ctx = new InitialDirContext(env);
        
        return ctx;
     }
docs: ------------------------------------------------