forward and backward compatibility
forward and backward compatibility

Since setMarker could be not available on ExtLogRecord with the
current version of jboss-logmanager, here the method is called only
if it is defined in the class.

Using MethodHandles to avoid some overhead introduced by
Core Reflection API.

jboss-logging/slf4j-jboss-logmanager