Note that the factory is constructed with the QName and xmlType. This is important
to allow distinction between primitive values and java.lang wrappers.
super(SimpleSerializer.class, xmlType, javaType);
this.isBasicType = JavaUtils.isBasic(javaType);