try { checkForException(rv[i]); } catch (GridException g) { throw g; } catch (Exception e) { throw new GridException(e); }
    public NodeStatus[] getGridStatus()    {        RspList responses = dispatcher.callRemoteMethods(                null, "_localStatus", NO_ARGS, NO_TYPES, GroupRequest.GET_ALL, 100);        NodeStatus[] rv = new NodeStatus[responses.size()];        for (int i = 0; i < rv.length; i++)        {            Rsp rsp = (Rsp) responses.elementAt(i);            rv[i] = (NodeStatus) rsp.getValue();        }        return rv;    }