*/
public ArrayList getPayments(HashMap params, int indId)
{
PaymentVO paymentVO = null;
ArrayList payments = new ArrayList();
AccountFacadeLocal paymentL = null;
try
{
String syncDatePrKeyField[] = {""};
Timestamp lastSyncDate = (Timestamp)params.get("lastSyncDate");
String operation = (String)params.get("Operation");
InitialContext ic = CVUtility.getInitialContext();
AccountFacadeLocalHome home = (AccountFacadeLocalHome)ic.lookup("local/AccountFacade");
paymentL = home.create();
paymentL.setDataSource(this.dataSource);
Collection col = getList("Payment",lastSyncDate,operation,syncDatePrKeyField);
Object ids[] = col.toArray();
HashMap hm = new HashMap();
int size = ids.length;
for(int i=0;i<size;i++)
{
hm = (HashMap)ids[i];
paymentVO = paymentL.getPaymentVO(((Long)hm.get(syncDatePrKeyField[0])).intValue(),indId);
payments.add(paymentVO);
}
}catch(Exception e)
{
logger.debug("Error in getting PaymentVos : "+e);