public static Group findOrCreate(String name) { Group it = Group.find("name", name).first(); if (it == null) { it = new Group(name); } return it; }