}
}
Metaclass supportGroupMetaclass = getMetadata().getMetaclass("SupportGroup");
Instance group = new Instance(supportGroupMetaclass, m_context);
InstanceList participants = new InstanceArrayList(2);
group.setNew();
group.setValue("name", "A group");
group.setValue("participants", participants);
participants.add(doctor);
doctor.setValue("licenseNumber", "Lic 01");
commit();
group = Query.createRead(supportGroupMetaclass, null, null, null, -1, 0, false, Query.SEC_NONE, m_context).read().getInstance(0);