if ( operation instanceof UpdateTupleOperation ) {
UpdateTupleOperation update = (UpdateTupleOperation) operation;
executeBatchUpdate( inserts, update );
}
else if ( operation instanceof RemoveTupleOperation ) {
RemoveTupleOperation tupleOp = (RemoveTupleOperation) operation;
executeBatchRemove( inserts, tupleOp );
}
else if ( operation instanceof UpdateAssociationOperation ) {
UpdateAssociationOperation update = (UpdateAssociationOperation) operation;
insertOrUpdateAssociation( update.getAssociationKey(), update.getAssociation(), update.getContext() );