Iterator it = variants.iterator();
while (it.hasNext()) {
VariantBuilder variant = (VariantBuilder) it.next();
InternalLayoutContentBuilder content = (InternalLayoutContentBuilder)
((InternalPolicyFactory) POLICY_FACTORY).createLayoutContentBuilder();
LayoutType type = null;
Object selected = ((IStructuredSelection) layoutType.
getSelection()).getFirstElement();
if (selected instanceof LayoutType) {
type = (LayoutType) selected;
}