private static Class getClassObject(String name)
        throws ClassNotFoundException
    {
        if (useContextClassLoader)
            return Thread.currentThread().getContextClassLoader()
                   .loadClass(name);
        else
            return Class.forName(name);
    }