class GenericsUtil {

  public static boolean isLog4jLogger(Class<?> clazz) {
    if (clazz == null) {
      return false;
    }
    Logger log = LoggerFactory.getLogger(clazz);
    return log instanceof Log4jLoggerAdapter;
  }

}