private Class < ? > loadClassByName ( String className ) throws TransformationOperationException { Exception e ; if ( className . contains ( ";" ) ) { try { String [ ] parts = className . split ( ";" ) ; ModelDescription description = new ModelDescription ( ) ; description . setModelClassName ( parts [ 0 ] ) ; if ( parts . length > 1 ) { description . setVersionString ( new Version ( parts [ 1 ] ) . toString ( ) ) ; } return modelRegistry . loadModel ( description ) ; } catch ( Exception ex ) { e = ex ; } } else { try { return this . getClass ( ) . getClassLoader ( ) . loadClass ( className ) ; } catch ( Exception ex ) { e = ex ; } } String message = "The class %s can't be found. The instantiate operation will be ignored." ; message = String . format ( message , className ) ; getLogger ( ) . error ( message ) ; throw new TransformationOperationException ( message , e ) ; }
Tries to load the class with the given name . Throws a TransformationOperationException if this is not possible .