private function propertiesValuestoStdClasses($propertiesValues = null)
    {
        $returnValue =array();
        foreach ($propertiesValues as $uri => $values) {
            $propStdClass = new stdClass;
            $propStdClass->predicateUri = $uri;
            foreach ($values as $value){
                $stdValue = new stdClass;
                $stdValue->valueType = (get_class($value)=="core_kernel_classes_Literal") ? "literal" : "resource";
                $stdValue->value = (get_class($value)=="core_kernel_classes_Literal") ? $value->__toString() : $value->getUri();
                $propStdClass->values[]= $stdValue;
            }
            $returnValue[]=$propStdClass;
        }
        return $returnValue;
    }