Tapestry4 environment construction and application