if (newAsset instanceof VariantBuilder) {
BeanProxy theme = (BeanProxy) context.getInteractionModel();
ListProxy variants = (ListProxy)
theme.getPropertyProxy(PolicyModel.VARIANTS);
// TODO better We should probably check that we have the right sort of variant (or at least a compatible one)
Operation addOperation = variants.prepareAddModelItemOperation(newAsset);
context.executeOperation(addOperation);
}
}
}
} finally {