change insertValueTrap to static method

Signed-off-by: xiehuc <xiehuc@gmail.com>