Add compensate handler.
Merge pull request #269 from xiongbupt/addCompensateDef

Add compensate handler.