Code Refactor fix build issue.

Signed-off-by: Pengcheng Bian <pbian@actuate.com>