diff --git a/java/org/slub/rosetta/dps/repository/plugin/SLUBXmlFormatValidationPlugin.java b/java/org/slub/rosetta/dps/repository/plugin/SLUBXmlFormatValidationPlugin.java
index d6bf65e1e137fd8e323b4ddf0f91f3f5862e89f1..bcf7805b5500d101fda994216c8f3c6dd4509a23 100644
--- a/java/org/slub/rosetta/dps/repository/plugin/SLUBXmlFormatValidationPlugin.java
+++ b/java/org/slub/rosetta/dps/repository/plugin/SLUBXmlFormatValidationPlugin.java
@@ -67,7 +67,8 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
             Document doc = db.parse(new File(namespaceSchemaMapFile));
             Element de = doc.getDocumentElement();
             NodeList nodes = de.getElementsByTagName("entry");
-            for (int i = 0; i < nodes.getLength(); i++) {
+            var nodesize = nodes.getLength();
+            for (int i = 0; i < nodesize; i++) {
                 Node n = nodes.item(i);
                 NamedNodeMap attributes = n.getAttributes();
                 List<String> attr_strings = List.of(new String[]{"schematype", "namespace", "schemaurl"});
@@ -279,7 +280,7 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
         return result;
     }
 
-    private boolean checkIfWellformed(Document doc) throws ParserConfigurationException, IOException, SAXException {
+    private boolean checkIfWellformed(Document doc) {
         /* detect XML type via NS */
         boolean isWellformedXml = false;
         XmlInfoRecord info = getXMLinfo(doc);