242243244245246247248249250251252
if (r.size() == 1) { return Optional.of(r.get(0)); } else if (r.size() == 0) { return Optional.absent(); } else { throw new OrmDuplicateKeyException("Duplicate group UUID " + uuid); } } finally { db.close(); } }