StringBuilder sb = new StringBuilder();
Session s = Factory.getSession();
Database currDb = s.getCurrentDatabase();
View contacts = currDb.getView("AllContacts");
Document doc = contacts.getFirstDocument();
Item testItem = doc.replaceItemValue("readersAuthorsNamesField", s.getEffectiveUserName());
sb.append("Checking if Item is Readers, Names or Authors...");
sb.append(testItem.isReadersNamesAuthors());
testItem.setNames(true);
testItem.setAuthors(true);
testItem.setReaders(true);