- private void writeKeyValueMap(final Map<QName, Object> keyValueMap) throws IOException {
- if (keyValueMap != null && !keyValueMap.isEmpty()) {
- output.writeInt(keyValueMap.size());
-
- for (Map.Entry<QName, Object> entry : keyValueMap.entrySet()) {
+ private void writeKeyValueMap(final Set<Entry<QName, Object>> entrySet) throws IOException {
+ if (!entrySet.isEmpty()) {
+ output.writeInt(entrySet.size());
+ for (Entry<QName, Object> entry : entrySet) {