public void setContainer(Container container, boolean defineProperties) {
   this.container = container;
   if (defineProperties) {
     // Prepare the container by adding all properties needed for the reports
     for (ReportDefinition type :
         (ReportDefinition[]) reportDefinition.getClass().getEnumConstants()) {
       if (!type.requiresDatabaseConnection()) {
         JRUtils.addContainerPropertiesFromReport(
             container, reportGenerator.loadTemplate(getFullPath(type)));
       }
     }
   }
 }