code: public void visit(IBaseResource theResource, IModelVisitor theVisitor) {
  		BaseRuntimeElementCompositeDefinition<?> def = myContext.getResourceDefinition(theResource);
  		visit(new IdentityHashMap<Object, Object>(), theResource, theResource, null, null, def, theVisitor);
  	}
docs: Visit all elements in a given resource
  
  <p>
  Note on scope: This method will descend into any contained resources ({@link IResource#getContained()}) as well, but will not descend into linked resources (e.g.
  {@link BaseResourceReferenceDt#getResource()}) or embedded resources (e.g. Bundle.entry.resource)
  </p>
  
  @param theResource The resource to visit
  @param theVisitor  The visitor