throw error if doctype not specified in bean