A method for securing a container, as example a bottle, including a closure device, or a stopper. A detector is positioned adjacent to the surface to collect scattered light from the spot where the detector includes a one- or two-dimensional array of sensors. The mounting construction permits the tray to be selectively pivoted relative to the frame within the vertical plane. A cylindrical bushing is fitted to the first axial side of the pipe insertion section of the connector housing, and a valve cap for receiving a second axial end of the compression coil spring is formed integrally at the first axial end of the cylindrical bushing.