$response = new simpleResponse();
        //  include './inc/incWebServiceSessionValidation.php';
        try {
            $parameters = Delete::collectParameters();
            $result = da_widget_config::DeleteWidgetConfig($parameters->widget_config_id);
            $response->status = "OK";
            $response->message = "";
            $response->data = $result;
        } catch (Exception $ex) {
            $response->status = "EXCEPTION";
            $response->message = $ex->getMessage();
            $response->data = $result;
        }
        return $response;
    }
    private static function collectParameters()
    {
        $rawPOSTContent = file_get_contents('php://input');
        $decodedPOSTParams = json_decode($rawPOSTContent);
        $parameters = new stdClass();
        $parameters->widget_config_id = $decodedPOSTParams->widget_config_id;
        //TODO Widget Validation
        if (is_numeric($parameters->widget_config_id) && $parameters->widget_config_id > 0) {
            return $parameters;
        }
        throw new Exception("Invalid Parameters");
    }
}
include './inc/incJSONHeaders.php';
echo json_encode(Delete::DeleteWidgetConfig());