private final static String CurrentNodeSelector = "DebugRenderer-CurrentNodeSelector";
final static Logger logger = LoggerFactory.getLogger(DebugRenderer.class);
public DebugRenderer(final String logMessage) {
super(CurrentNodeSelector + ":" + logMessage, new ElementSetterTransformer(new ElementSetter() {
@Override
public void set(Element elem) {
String logStr = logMessage + ":\n" + elem.toString();
logger.debug(logStr);
}