public void setTemplates(final List<MetaStatisticsTemplate> templates) {
        this.templates = templates;
    }
@return build the STAT or return null for not valid
stroom-meta/stroom-meta-statistics-impl/src/main/java/stroom/meta/statistics/impl/MetaStatisticsImpl.java