private function addCustomer($cid)
 {
     $logi = $this->get('log_interface');
     $ldapi = $this->get('ldap_interface');
     $customer = new Customer();
     $customer->setId($cid);
     $customer->setName($ldapi->getCustomerName($cid));
     $customer->setEmail($ldapi->getCustomerMail($cid));
     $em = $this->get('Doctrine')->getManager();
     $em->persist($customer);
     $em->flush();
     $logi->writeLog($this->logname, "Customer '{$cid}' added", 3);
 }