you could remove the null check by changing the second check to `Defaults.NAME.equals(parser.currentName())`