I was wondering if it is possible to find out whether a class (in the same library) exists by name (String) and also if it is possible to create an instance of a class from a name (String).
In PHP you can do it like:
$className = 'SomeClass';
if (class_exists($className))
$instance = new $className;