@Override
    public JsonNode forStorage(AutoPromotionProperty value) {
        return format(
                MapBuilder.create()
                        .with("validationStamps", value.getValidationStamps().stream()
                                .map(Entity::id)
                                .collect(Collectors.toList()))
                        .with("include", value.getInclude())
                        .with("exclude", value.getExclude())
                        .get()
        );
    }
@ Override public JsonNode forStorage ( AutoPromotionProperty value ) { return format ( MapBuilder . create ( ) . with ( "validationStamps" , value . getValidationStamps ( ) . stream ( ) . map ( Entity :: id ) . collect ( Collectors . toList ( ) ) ) . with ( "include" , value . getInclude ( ) ) . with ( "exclude" , value . getExclude ( ) ) . get ( ) ) ; }
As a list of validation stamp IDs