Class targetType = toClass(mapping.getComponentType());
JVar valueVar = block.decl(context.toJClass(targetType), propertyName);
JTryBlock tryBlock = block._try();
tryBlock.body().assign(valueVar, adapterVar.invoke("unmarshal").arg(value));
JCatchBlock catchException = tryBlock._catch(context.toJClass(Exception.class));
JBlock catchBody = catchException.body();
catchBody.invoke(builder.getReadContextVar(), "xmlAdapterError")
.arg(xsrVar)
.arg(context.dotclass(property.getAdapterType()))
.arg(context.dotclass(targetType))
.arg(context.dotclass(targetType))
.arg(catchException.param("e"));
catchBody._continue();
block.add(new JBlankLine());
toSet = valueVar;