Simple template engine written in Java