Fix NPE, Jboss exception, Aggregator generic