Core code for Tapestry