try {
doTransform( agent );
} catch ( final MalformedURLException e ) {
throw new RuntimeException( "Should not happen. Could not create URL from file.", e );
} catch ( final IOException e ) {
throw new ClassTransformationException( "Failed to write transformed class file contents.", e );
} catch ( final CannotCompileException e ) {
throw new RuntimeException( "Should not happen. Failed to convert a valid compiled class into bytecode", e );
} catch ( final IllegalClassFormatException e ) {
throw new RuntimeException( "Should not happen. The class file does not contain valid content", e );
}