if(version.equals(artifact.getVersion().toString())) {
found = true;
break;
}
Version test = new Version(version);
if(test.compareTo(artifact.getVersion()) > 0) {
Element newVersion = doc.createElement("version");
newVersion.appendChild(doc.createTextNode(artifact.getVersion().toString()));
versionsElement.insertBefore(newVersion, versions.item(i));
found = true;
}