if(templateBefore != null) {
applyTemplate(templateBefore, element, executionContext);
} else if(executionContext.isDefaultSerializationOn()) {
// If Default Serialization is on, we want to block output to the
// output stream...
element.setWriter(new NullWriter(currentWriter), this);
}
} else if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) {
// write the start of the element...
if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) {
targetWriter.visitBefore(element, executionContext);