public function prepareObjectInformation(array &$info)
{
if (!$this->exists()) {
if (!isset($info[self::ATTRIBUTE_CN])) {
if (!isset($info[self::ATTRIBUTE_MAIL])) {
throw new Horde_Kolab_Server_Exception('Either the mail address or the common name has to be specified for a group object!');
} else {
$info[self::ATTRIBUTE_CN] = $info[self::ATTRIBUTE_MAIL];
}
}
}
}