@SuppressWarnings("unchecked")
    public static <N, T> TKey<N, T> resolve(Class<N> namespace, String name) {
        if (namespace == null) {
            throw new IllegalArgumentException("Namespace must not be null.");
        }
        if (name == null) {
            throw new IllegalArgumentException("Name must not be null.");
        }

        synchronized (registry) {
            TKey<N, T> field = new TKey<>(namespace, name, null);

            TKey<?, ?> featureKey = registry.get(field);
            if (featureKey != null) {
                return (TKey<N, T>) featureKey;
            }
        }
        return null;
    }