public static function alreadyProcessed($node)
 {
     if (!is_array($return = self::getNodeHash($node))) {
         return null;
     }
     list($relationship, $hash) = $return;
     if (!is_string($relationship) || !is_string($hash)) {
         $this->raiseError("Bad parameters");
         return null;
     }
     if (self::$lookup_stmt === null) {
         $db = MDB2::singleton();
         self::$lookup_stmt = $db->prepare("SELECT id FROM form_relationship_importer WHERE relationship = ? and hash= ?", array('text', 'text'), array('text'), MDB2_PREPARE_RESULT);
         if (I2CE::pearError(self::$lookup_stmt, "Could not prepare lookup statement")) {
             return null;
         }
     }
     if (!self::$lookup_stmt) {
         return null;
     }
     $results = self::$lookup_stmt->execute(array($relationship, $hash));
     $row = $results->fetchRow();
     if (!isset($row) || I2CE::pearError($row, "Error getting form id:")) {
         return false;
     }
     return $row->id;
 }