private function incrementLoadCount($wms)
 {
     // counts how often a layer has been loaded
     $monitor = new Layer_load_count();
     foreach ($wms->objLayer as $l) {
         $monitor->increment($l->layer_uid);
     }
 }
        header("Content-type: application/xhtml+xml; charset=UTF-8");
        echo createExceptionXml("InvalidUpdateSequence", "Invalid update sequence");
        die;
    } else {
        if ($updateSequence == $updateSequenceDb) {
            // Exception: code=CurrentUpdateSequence
            header("Content-type: application/xhtml+xml; charset=UTF-8");
            echo createExceptionXml("CurrentUpdateSequence", "Current update sequence");
            die;
        }
    }
}
//
// increment layer count
//
$monitor = new Layer_load_count();
$monitor->increment($layerId);
// ---------------------------------------------------------------------------
//
// START TO CREATE CAPABILITIES DOC
// (return most recent Capabilities XML)
//
// ---------------------------------------------------------------------------
$doc = new DOMDocument('1.0');
$doc->encoding = 'UTF-8';
$doc->standalone = false;
#Check for existing content in database
#to be adopted TODO armin
function validate($contactInformation_column)
{
    if ($contactInformation_column != "" and $contactInformation_column != NULL) {