+ log_add(1, " xml error ");
+ sr_remove_module(session_connection, name);
+ context_apply_changes();
+ return false;
+ }
+ }
+ free(data_path);
+
+ data_path = str_replace(path, ".yang", ".json");
+ if(file_exists(data_path)) {
+ rc = sr_install_module_data(session_connection, name, 0, data_path, LYD_JSON);
+ if(rc != SR_ERR_OK) {
+ log_add(1, " json error ");