private void extractMechanism ( EntryReact entry ) { String mechanismName = "org.openscience.cdk.reaction.mechanism." + entry . getMechanism ( ) ; try { mechanism = ( IReactionMechanism ) this . getClass ( ) . getClassLoader ( ) . loadClass ( mechanismName ) . newInstance ( ) ; logger . info ( "Loaded mechanism: " , mechanismName ) ; } catch ( ClassNotFoundException exception ) { logger . error ( "Could not find this IReactionMechanism: " , mechanismName ) ; logger . debug ( exception ) ; } catch ( InstantiationException | IllegalAccessException exception ) { logger . error ( "Could not load this IReactionMechanism: " , mechanismName ) ; logger . debug ( exception ) ; } }
Extract the mechanism necessary for this reaction .