boolean simple = extension != null ? extension.simple() : false;
Serializer ser = context.getSerializer(valueContext);
if (ser == null) {
if (simple) {
QName qname = getQName(accessor);
ser = new SimpleElementSerializer(qname);
} else {
ser = context.getSerializer(valueContext);
if (ser == null) {
QName qname = getQName(accessor);
ser = new ExtensionSerializer(qname);