public NshEntryBuilder addAugmentation(Class<? extends Augmentation<NshEntry>> augmentationType, Augmentation<NshEntry> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }