// Get group ID from atomic command
GroupSymbol group = null;
if(command instanceof Query){
group = getQueryGroup((Query)command);
}else if(command instanceof SetQuery) {
SetQuery union = (SetQuery) command;
group = getQueryGroup(union.getProjectedQuery());
} else if (command instanceof ProcedureContainer) {
group = ((ProcedureContainer) command).getGroup();
} else if ( command instanceof BatchedUpdateCommand ) {
BatchedUpdateCommand buc = (BatchedUpdateCommand)command;
if ( buc.getUpdateCommands().get(0) instanceof Update ) {