String condition2 = productStores.get(0).getString("condition2");
// convert preference setting
Timestamp fromDate = UtilDateTime.toTimestamp(condition1);
Timestamp thruDate = UtilDateTime.toTimestamp(condition2);
Timestamp nowTime = UtilDateTime.nowTimestamp();
if (nowTime.after(fromDate) && nowTime.before(thruDate)) {
serviceMap.put("productStoreId", productStoreId);
Map eBayUserLogin = dispatcher.runSync("getEbayStoreUser", serviceMap);
String eBayUserLoginId = (String) eBayUserLogin.get("userLoginId");
GenericValue party = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", eBayUserLoginId));
String partyId = party.getString("partyId");