My construction is not failsafe. I got to change this. The deployment plan builder has either to get the existing deployment name which is found by the pattern/exact name or, in case there is no deployment, the old way, as it was before.