int order = 0;
if (ord != null)
order = ord.intValue();
//push the operation onto the op engine.
Operation op = null;
if (sites != null && type != null) {
try {
op = this.engine.push(false, topic, value, type, position,
site, sites, order);
} catch (OperationEngineException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return null;
}
if (op == null)
return null;
value = op.getValue();
position = op.getPosition();
} else if (site == this.engine.getSiteId()) {
// op was echo'ed from server for op engine, but type null means
// op engine doesn't care about this message anyway so drop it
return null;
}