class MsoYamlEditorWithEnvt {

    public synchronized Set<MsoHeatEnvironmentResource> getResourceListFromEnvt() {
        try {
            Set<MsoHeatEnvironmentResource> resourceList = new HashSet<>();
            @SuppressWarnings("unchecked")
            Map<String, Object> resourceMap = (Map<String, Object>) yml.get("resource_registry");

            for (Entry<String, Object> stringObjectEntry : resourceMap.entrySet()) {
                MsoHeatEnvironmentResource her = new MsoHeatEnvironmentResource();
                Entry<String, Object> pair = stringObjectEntry;
                her.setName((String) pair.getKey());
                her.setValue((String) pair.getValue());
                resourceList.add(her);
            }
            return resourceList;
        } catch (Exception e) {
            logger.debug(EXCEPTION, e);
        }
        return null;
    }

    public  MsoYamlEditorWithEnvt();
    public  MsoYamlEditorWithEnvt(byte[] b);

}