class DashboardItemDeletionHandler extends DeletionHandler {

    @Override
    public void deleteUser( User user )
    {
        for ( DashboardItem item : dashboardService.getUserDashboardItems( user ) )
        {
            while ( item.getUsers().contains( user ) ) // In case of duplicates
            {
                item.getUsers().remove( user );
            }

            if ( item.getUsers().isEmpty() )
            {
                dashboardService.deleteDashboardItem( item );
            }
        }
    }

    public  DashboardItemDeletionHandler( DashboardService dashboardService );

}