DecisionTree[] decisionTrees = functionCall.getContext().payload.trees;
for( int i = 0; i < decisionTrees.length; i++ )
{
FinalDecision finalDecision = decisionTrees[ i ].decide( arguments );
if( LOG.isDebugEnabled() )
LOG.debug( "segment: {}, returned category: {}", i, finalDecision.getScore() );
results[ finalDecision.getIndex() ]++;
}
int max = Ints.max( results );
int index = Ints.indexOf( results, max );