// insert all the contacts
Set<SbiAlarmContact> listSbiContacts = new HashSet<SbiAlarmContact>();
if(alarm.getSbiAlarmContacts()!=null){
for (Iterator iterator = alarm.getSbiAlarmContacts().iterator(); iterator.hasNext();) {
AlarmContact alarmContact = (AlarmContact) iterator.next();
insertAlarmContact(alarmContact, session);
SbiAlarmContact sbiAlCon=(SbiAlarmContact)session.load(SbiAlarmContact.class, alarmContact.getId());
listSbiContacts.add(sbiAlCon);
}
}
hibAlarm.setSbiAlarmContacts(listSbiContacts);