Refactor to show it is onPrepare

Signed-off-by: sguan <sguan@actuate.com>