public static function overrideType($name, $className)
    {
        if ( ! isset(self::$_typesMap[$name])) {
            throw TypeException::typeNotFound($name);
        }

        self::$_typesMap[$name] = $className;
    }