public static AdvancedModelWrapper wrap ( Object model ) { if ( ! ( isModel ( model . getClass ( ) ) ) ) { throw new IllegalArgumentException ( "The given object is no model" ) ; } return new AdvancedModelWrapper ( ( OpenEngSBModel ) model ) ; }
Creates an advanced model wrapper object out of the given model object . Throws IllegalArgumentException in case the given model object is no model .