}
catch(InstantiationException ex)
{
throw new ModelException(ex);
}
stereotype.refSetValue("name", stereotypeName);
Collection baseClasses = (Collection)stereotype.refGetValue("baseClass");
baseClasses.add(baseClass);
// Attach stereotype to first model, if any
Collection models = getAllOfClass("Model_Management.Model");
if(models.size()>0)