Set display:block on generatedContent in BoxBuilder: Resolves ClassCastException for grid layouts.