if (subNode.getNodeType() == Node.ELEMENT_NODE) {
if (subNode.getNodeName().equals("prerequisites")) {
for (Node prerequisiteNode = subNode.getFirstChild(); prerequisiteNode != null; prerequisiteNode = prerequisiteNode.getNextSibling()) {
if (prerequisiteNode.getNodeType() == Node.ELEMENT_NODE) {
if (prerequisiteNode.getNodeName().equals("NoVegetation")) {
NoVegetationPrerequisite noVegetationPrerequisite = new NoVegetationPrerequisite();
tileImprovement.addPrerequisite(noVegetationPrerequisite);
} else if (prerequisiteNode.getNodeName().equals("NoTileImprovement")) {
NoTileImprovementPrerequisite noTileImprovementPrerequisite = new NoTileImprovementPrerequisite();
for (Node prerequisiteSubNode = prerequisiteNode.getFirstChild(); prerequisiteSubNode != null; prerequisiteSubNode = prerequisiteSubNode.getNextSibling()) {
if (prerequisiteSubNode.getNodeType() == Node.ELEMENT_NODE) {