bug in class registration parsing, needed to better express the query for nhibernate