template for Java/Scala