Code Refactor Fix 456310

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