public static Long parseNumericString(String string) throws InvalidRpcDataException {
        try {
            return Long.parseLong(string);
        } catch (NumberFormatException e) {

            if (string == null) {
                throw new InvalidRpcDataException("Expected numeric String, but got null");
            } else {
                throw new InvalidRpcDataException("Expected numeric String, but got: " + string);
            }
        }
    }