Java template and configuration