public function __construct($entry = null, $isInsert = false)
 {
     $this->isInsert = $isInsert;
     if (is_null($entry)) {
         parent::__construct();
     } elseif ($entry instanceof SimpleXMLElement) {
         $this->elements = $entry;
     } else {
         parent::__construct($entry);
     }
 }