// If there are any hints set on the node, create a new
// RenderContext which merges them with those in the RenderContext
// passed in with the passed in hints taking precedence.
RenderContext rcIn = renderContext;
RenderingHints nodeHints = nodeSupport.getRenderingHints();
if(nodeHints != null) {
RenderingHints hints = renderContext.getRenderingHints();
RenderingHints mergedHints;
if (hints == null) {
mergedHints = nodeHints;
} else if (nodeHints == null || nodeHints.isEmpty()) {
mergedHints = hints;
} else {
mergedHints = new RenderingHints((Map)nodeHints);
mergedHints.add(hints);
}
if(mergedHints != hints) {
rcIn = new RenderContext(renderContext.getTransform(),
renderContext.getAreaOfInterest(),