Database currDb = ExtLibUtil.getCurrentDatabase();
View contacts = currDb.getView("AllContacts");
Document doc = contacts.getFirstDocument();
if (doc.hasItem("Form")) {
String formName = doc.getItemValueString("Form");
Form fm = currDb.getForm(formName);
NoteCollection notes = currDb.createNoteCollection(false);
notes.add(fm);
ExtLibUtil.getViewScope().put("oldJavaTest", notes.getFirstNoteID());
}
} catch (NotesException e) {