public String getFirstContactID() throws NotesException { if (!firstContactIDRead) { Database db = ExtLibUtil.getCurrentDatabase(); View view = db.getView("AllContacts"); Document doc = view.getFirstDocument(); if (doc != null) { firstContactID = doc.getNoteID(); } } return firstContactID; }