boolean showModel = false;
if (exposeResolvedResource != null) {
showModel = model.isDefined();
}
model.get(CommonAttributes.SHOW_MODEL).set(showModel);
ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
//Process all the child resources skipping the expose-model=>* children
for (String type :resource.getChildTypes()) {
if (!type.equals(CommonAttributes.EXPOSE_MODEL)) {
for (ResourceEntry child : resource.getChildren(type)) {
childContext.processChild(child.getPathElement(), child);
}
}
}
}
});