update DomainFactory.java.ftl