private ResultPage fetchInitialPageIfNecessary() throws BrowseException { ResultPage result = null; if (! initialized) { DataResponse resp = initialPageCallback.fetchPage(); cookie = resp.getCookie(); if (resp.getEstimatedCount()>=0) { this.count = resp.getEstimatedCount(); } initialized = true; result = new ResultPageImpl(resp.getPage()); } return result; }