code: def copy(self, **replacements):
      
      cls = type(self)
      kwargs = self._asdict()
      for key, val in replacements.items():
        if key == 'excludes':
          val = JarDependency._prepare_excludes(val)
        kwargs[key] = val
      org = kwargs.pop('org')
      base_name = kwargs.pop('base_name')
      return cls(org, base_name, **kwargs)
docs: Returns a clone of this JarDependency with the given replacements kwargs overlaid.