public static function getParserByKey($key) {
        switch (strtolower($key)) {
            case "twig":
                return new TwigTemplateParser();
            default:
                if (isset(self::$customParsers[$key]))
                    return self::$customParsers[$key];
                else
                    return new MustacheTemplateParser();
        }
    }