Updated log4j replacement token
Updated polling status variable name
Fixed indentation