private Instrumenter resolveInstrumenter(String provider, Logger logger) throws MojoExecutionException {
if ( "javassist".equals( provider ) ) {
return new JavassistInstrumenter( logger, this );
}
else if ( "cglib".equals( provider ) ) {
return new CGLIBInstrumenter( logger, this );
}
else {
throw new MojoExecutionException( "Unable to resolve provider [" + provider + "] to appropriate instrumenter" );
}
}