Java template examples