Use warn() instead of Level.WARNING