Add releated class for XQL.