class VitamDescriptionResolver {

    public VitamDescriptionType resolve(String name) {
        if (descriptionTypeByStaticName.containsKey(name)) {
            return descriptionTypeByStaticName.get(name);
        }

        for (Map.Entry<Pattern, VitamDescriptionType> entry : descriptionTypeByNamePattern
            .entrySet()) {
            if (entry.getKey().matcher(name).matches()) {
                return entry.getValue();
            }
        }

        return null;
    }

    public  VitamDescriptionResolver(List<VitamDescriptionType> vitamDescriptionTypes);

}