}
else if (parser.getName().equals("artifactId")) {
// 1st: if found project/artifactId -> overwrite
// 2nd: if in parent, and artifactId is still null, overwrite
if (parser.getDepth() == 2 || (inParent && artifactId == null)) {
artifactId = StringUtils.trim(parser.nextText());
}
}
else if (parser.getName().equals("version")) {
// 1st: if found project/version -> overwrite
// 2nd: if in parent, and version is still null, overwrite