You don't need to build the tapestry source.
Create a custom PageSource implementation by copy / paste / tweaking PageSourceImpl (lookup source on github) and removing SoftReference usage. Then use tapestry ioc to override the builtin PageSource service with your custom impl.