def class_for name
      begin
        path = "#{@basedir}/#{name}"
        require path
        return Object.const_get("Wbem").const_get(name)
      rescue LoadError
        raise "'#{path}.rb' not found, use 'genclass' of ruby-wbem to generate class '#{name}'"
      end
    end
def class_for name
      begin
        path = "#{@basedir}/#{name}"
        require path
        return Object.const_get("Wbem").const_get(name)
      rescue LoadError
        raise "'#{path}.rb' not found, use 'genclass' of ruby-wbem to generate class '#{name}'"
      end
    end
Class Factory