newMethod.setNative(false);
final String category = LoggingConstants.ROOT_LOGGER_NAME;
final LoggingFactoryConfig config = this.getLoggingFactoryConfig();
final CreateRootLoggerTemplatedFile createLogger = new CreateRootLoggerTemplatedFile();
newMethod.setBody(createLogger);
final LoggingLevel loggingLevel = config.getLoggingLevel(category);
createLogger.setLevelLogger(this.getConstructorForLoggingLevel(loggingLevel));
final String typeName = config.getTypeName(category);
createLogger.setLogger(this.getTargetLoggerConstructor(typeName));
context.debug("Type: " + typeName);
// rename parameter to a known name.
final NewMethodParameter parameter = (NewMethodParameter) newMethod.getParameters().get(0);