code: def _as_versioned_jar(self, internal_target):
      
      jar, _ = internal_target.get_artifact_info()
      pushdb_entry = self._get_db(internal_target).get_entry(internal_target)
      return jar.copy(rev=pushdb_entry.version().version())
docs: Fetches the jar representation of the given target, and applies the latest pushdb version.