while (true) {
try {
countCall++;
client = getRpcClient();
if (result == XdrVoid.XDR_VOID) {
client.call(functionId, parameter, result);
} else {
ResultWithCode nfsResult = new ResultWithCode(result);
client.call(functionId, parameter, nfsResult);
if (nfsResult.getResultCode() != ResultCode.NFS_OK) {
throw new NFS2Exception(nfsResult.getResultCode());