class VelocityStyleTilesTool extends ContextHolder {

    public AttributeContext getAttributeContext() {
        Request velocityRequest = createVelocityRequest(
                getServletContext(), null);
        TilesContainer container = TilesAccess
                .getCurrentContainer(velocityRequest);
        return container.getAttributeContext(velocityRequest);
    }

}