pass the statement to the onXxxxx method