Please if any one has any comment or guidance because I am stuck there and Till now could not decide on the algorithm used for transformation I mean How could I deal with the the classes or association in which the profile is applied, as ordinary class or as type of the stereotype name

for example if I have stereotype called ontologyClass , where the metaclass is Class, how to transform it to class