def _as_versioned_jar(self, internal_target):
    """Fetches the jar representation of the given target, and applies the latest pushdb version."""
    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())
Fetches the jar representation of the given target, and applies the latest pushdb version.