You need to use the correct overloaded ModelNode.set() variant depending on the declared ModelType of the attribute. Using ModelType.STRING for everything isn't correct and is an incompatible change.