This will throw an ISE if there's no injection, and there won't be if there's no access log configured. InjectedValue.getOptionalValue() won't throw the ISE.