try {
txn = createTransaction(10 * 1000);
JobParams old = (JobParams)
space.takeIfExists(jpSnapshot, txn, JavaSpace.NO_WAIT);
if(old == null) {
txn.abort();
throw new RemoteException("No JobParams in JavaSpace");
}
space.write(jp, txn, Lease.FOREVER);
} catch(Exception ex) {
throw new RemoteException(ex.toString());