@SuppressWarnings("unchecked")
    @Override
    public void start(StartContext context) throws StartException {
        ArrayList<T> toAggregate = new ArrayList<T>(injections.size());
        for (InjectedValue<T> current : injections) {
            toAggregate.add(current.getValue());
        }

        aggregation = aggregator.apply(toAggregate.toArray((T[])Array.newInstance(aggregationType, toAggregate.size())));
    }
@ SuppressWarnings ( "unchecked" ) @ Override public void start ( StartContext context ) throws StartException { ArrayList < T > toAggregate = new ArrayList < T > ( injections . size ( ) ) ; for ( InjectedValue < T > current : injections ) { toAggregate . add ( current . getValue ( ) ) ; } aggregation = aggregator . apply ( toAggregate . toArray ( ( T [ ] ) Array . newInstance ( aggregationType , toAggregate . size ( ) ) ) ) ; }
@see org.jboss.msc.service.Service#start(org.jboss.msc.service.StartContext)