@Override
@Nonnull
public JInvocation createAddToSerializeToExpression( @Nonnull AbstractGenerator<?> generator, @Nonnull JDefinedClass serializerClass, @Nonnull JExpression serializeTo, @Nonnull FieldDeclarationInfo fieldInfo, @Nonnull JVar object, JVar formatVersion ) {
JFieldVar constant = getConstant( serializerClass, fieldInfo );
JExpression objectAsString = codeGenerator.getParseExpressionFactory().createToStringExpression( codeGenerator.createGetterInvocation( object, fieldInfo ), fieldInfo );
return serializeTo.invoke( METHOD_NAME_ADD_ELEMENT_WITH_CHARACTERS )
.arg( serializeTo.invoke( METHOD_NAME_GET_NAMESPACE ) )
.arg( constant )
.arg( objectAsString );