throw new RemoteException("Could not acquire lock on document " + docPath);
} catch (final PermissionDeniedException e) {
transact.abort(transaction);
throw new RemoteException("Could not move/copy document " + docPath);
} catch (final IOException e) {
transact.abort(transaction);
throw new RemoteException(e.getMessage());
} catch (final TransactionException e) {
throw new RemoteException("Error commiting transaction " + e.getMessage());
} catch (final EXistException e) {
throw new RemoteException(e.getMessage());