* @return an object for the entry that was written to the space
* @see {@link http://gigaspaces.com/docs/JavaDoc/com/j_spaces/core/IJSpace.html#write(net.jini.core.entry.Entry,net.jini.core.transaction.Transaction,long,int)}
*/
public Lease write(final Object pojo, final long lease, final int modifiers)
{
return (Lease) execute(new JavaSpaceCallback() {
public Object doInSpace(JavaSpace js, Transaction tx) throws RemoteException,
TransactionException, UnusableEntryException, InterruptedException {
return ((IJSpace)js).write(pojo,tx, lease, Long.MAX_VALUE, modifiers);
}
});