As there are different strategies to scaffold code of a project, I would like to get your opinion about the idea to use the template approach (ex. Rest.ftl) using freemarker [1] or to create the files using JavaFacet, .... for a Spring project

Can we create easily a Java Class with @Annotations ?
What do you suggest to do to by example setup src/main/resources/application.yaml file

[1] https://github.com/obsidian-toaster/obsidian-addon/blob/master/src/main/java/org/obsidiantoaster/generator/ui/starter/PerformExtraTasksStep.java
[2] : https://github.com/forge/wildfly-swarm-addon/blob/master/src/main/java/org/jboss/forge/addon/swarm/ui/CreateRestEndpointStep.java#L47-L60