[jboss-jira] [Red Hat JIRA] (DROOLS-5703) Put common "generation code" inside one place