The ID corresponds most of the type to the qualified name. It differs only for local classes which do not have a qualified name but have an ID.