st: hansen 1999 grid-bootstrap

I am looking for a code to implement Hansen (1999) grid bootstrap into
stata.
Additionally, I would like to include dummies for breaks in mean,
persistence and AR coefficients.
Did somebody already do something similar or can provide a useful basis or
hints?