added findOrInit method for record class