}
if (batchParameters.isEmpty())
return new int[0];
if (session instanceof SessionRemote) {
FrontendBatchCommand c = ((SessionRemote) session).getFrontendBatchCommand(command, batchParameters);
c.executeUpdate();
int[] result = c.getResult();
c.close();
return result;
} else {
int size = batchParameters.size();
int[] result = new int[size];
boolean error = false;