}
public List<Offer> createFGBasedOfferWithItemCriteria(String orderRule, String fgRule, OfferDiscountType discountType, String orderItemMatchRule) {
List<Offer> offers = createFGBasedOffer(orderRule, fgRule, discountType);
OfferItemCriteria qualCriteria = new OfferItemCriteriaImpl();
//qualCriteria.setQualifyingOffer(offers.get(0));
qualCriteria.setQuantity(1);
qualCriteria.setMatchRule(orderItemMatchRule);
Set<OfferItemCriteria> criterias = new HashSet<OfferItemCriteria>();
criterias.add(qualCriteria);
offers.get(0).setQualifyingItemCriteria(criterias);