Internal api enhancement

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