protected function triggerBeforeCreationEvent()
    {
        $event = new LdapObjectCreationEvent(Event::LDAP_OBJECT_BEFORE_CREATE, $this->schema ? $this->schema->getObjectType() : null);
        $event->setData($this->attributes);
        $event->setContainer($this->container);
        $event->setDn($this->dn);

        $this->dispatcher->dispatch($event);

        $this->attributes = $event->getData();
        $this->container = $event->getContainer();
        $this->dn = $event->getDn();
    }