if(instance==null) {
instance = new LogServiceImpl();
}
if(instance.logService!=null && instance.logService instanceof ExtendedLogService) {
return new ExtendedLogServiceImpl((ExtendedLogService)instance.logService, bundle, loggerName);
}
return instance;
}