Use class.header in server generator