public function addRemoteApp(RemoteApp $l)
    {
        if ($this->collRemoteApps === null) {
            $this->initRemoteApps();
            $this->collRemoteAppsPartial = true;
        }

        if (!in_array($l, $this->collRemoteApps->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddRemoteApp($l);

            if ($this->remoteAppsScheduledForDeletion and $this->remoteAppsScheduledForDeletion->contains($l)) {
                $this->remoteAppsScheduledForDeletion->remove($this->remoteAppsScheduledForDeletion->search($l));
            }
        }

        return $this;
    }