static final synchronized FormSettingsTable assertRelation(CallingContext cc) throws ODKDatastoreException { if (relation == null) { FormSettingsTable relationPrototype; Datastore ds = cc.getDatastore(); User user = cc.getUserService().getDaemonAccountUser(); relationPrototype = new FormSettingsTable(ds.getDefaultSchemaName()); ds.assertRelation(relationPrototype, user); // may throw exception... // at this point, the prototype has become fully populated relation = relationPrototype; // set static variable only upon success... } return relation; }