title: Redefine a class using byte-buddy
body: <p>I want to redefine the Source class which is already defined in an existing framework. I want to automatically replace the original instances of the Source class with my enhanced class.  I do not have access to the code that creates the Source objects so the class substitution must perform automatically under the hood. Is it possible to do this using byte-buddy ?</p>
  
  <pre><code>    ByteBuddyAgent.install();
      Source source = new ByteBuddy()
              .subclass(Source.class)
              .method(named("hello")).intercept(MethodDelegation.to(Target.class))
              .defineMethod("myNewMethod", void.class).intercept(MethodDelegation.to(Target.class))
              .make()
              .load(Source.class.getClassLoader(),
                      ClassReloadingStrategy.fromInstalledAgent())
              .getLoaded()
              .newInstance();
  </code></pre>