Add deniedFinal property to account resource to simplify
Merging changes from master