MapperFactory factory = MappingUtil.getMapperFactory();
configureMapperFactory(factory);
Policy policy = new Policy();
Set<PolicyElement> elements = new HashSet<PolicyElement>();
elements.add(new CustomerElement());
elements.add(new ProductElement());
elements.add(new OtherElement());
elements.add(new OneOtherElement());
policy.setElements(elements);