class FruIdEventsHelperUtil {

    public static List<Event> addFruIDtoHostEvents( List<Event> aggregatedEvents, String serverFruID )
    {

        List<Event> events = new ArrayList<Event>();

        try
        {
            for ( int i = 0; i < aggregatedEvents.size(); i++ )
            {
                Event event = aggregatedEvents.get( i );
                Map<String, String> eventBody = event.getBody().getData();
                eventBody.put( "fruID", serverFruID );
                events.add( event );
            }
            return events;
        }
        catch ( Exception e )
        {
            logger.error( "HMS aggregator error in adding Fru ID to Host or BMC or SYSTEM Events", e );
        }

        return null;
    }

}