Fix for fetching domain class in GORM service