class EdmmUtils {

    public static Map<QName, TServiceTemplate> getAllToscaLightCompliantModels() {
        Map<QName, TServiceTemplate> serviceTemplates = RepositoryFactory.getRepository()
            .getQNameToElementMapping(ServiceTemplateId.class);

        ToscaLightChecker toscaLightChecker = EdmmUtils.getToscaLightChecker();

        return serviceTemplates.entrySet()
            .stream()
            .filter(entry -> toscaLightChecker.isToscaLightCompliant(entry.getValue()))
            .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
    }

}