public OpenEngSBModel getCorrespondingModel ( ) throws EKBException { ModelDescription description = getModelDescription ( ) ; try { Class < ? > modelClass = modelRegistry . loadModel ( description ) ; return ( OpenEngSBModel ) edbConverter . convertEDBObjectToModel ( modelClass , object ) ; } catch ( ClassNotFoundException e ) { throw new EKBException ( String . format ( "Unable to load model of type %s" , description ) , e ) ; } }
Returns the corresponding model object for the EDBModelObject