/** * Currently this method always returns an instance of * {@link StaticMDCBinder}. * @return */ public MDCAdapter getMDCA() { try { return (MDCAdapter) Class.forName(getMDCAdapterClassStr()).newInstance(); } catch (Exception e) { // NOSONAR we can't log here as we are actually instantiating log here System.err.println("Unable to instantiate mdc adapter " + getMDCAdapterClassStr()); // NOSONAR e.printStackTrace(); // NOSONAR return new NOPMDCAdapter(); } }