Collection<Namespace> (Map<String, String> namespaces) { final List<Namespace> list = new ArrayList<>(namespaces.size()); for (Map.Entry<String, String> e : namespaces.entrySet()) { list.add(new Namespace(e.getKey(), e.getValue())); } return list; }