java+templates+for+class