docs: function validateDocMongoose(mongoose, collectionname, schema, doc) {
      var DocModel;
      //console.log('schema ' + JSON.stringify(schema));
      if (mongoose.modelNames().indexOf(collectionname) >= 0) {
          DocModel = mongoose.model(collectionname);
      }
      else {
          DocModel = mongoose.model(collectionname, schema);
      }
      return validateDocVsMongooseModel(DocModel, doc);
  }