public static function fromKind($kind) {
        $composerMap = self::getComposerMap();
        if (!array_key_exists($kind, $composerMap))
            throw new ComposerException("no composer found for \"$kind\"");
        $class = $composerMap[$kind];
        return new $class();
    }