detecting cldc version

Is there a way to detect the version of the underlying cldc?
And also how do I check the version of the MIDP being used?

I am planning to do a game framework and I will need this information to decide which classes I will need to call

Try:
String config = System.getProperty(“microedition.configuration”);
String profiles = System.getProperty(“microedition.profiles”);