private JsonStreamTarget decorate(JsonStreamTarget target) {
if (virtualRoot != null) {
target = new RemoveRootTarget(target, virtualRoot, namespaceSeparator);
}
if (autoArray) {
target = new AutoArrayTarget(target);
}
if (autoPrimitive) {
target = new AutoPrimitiveTarget(target, false);
}
return target;