* @param indId int individual id
* @return boolean status of operation
*/
public boolean addPaymentMethods(ArrayList PVOs, int indId)
{
PaymentMethodVO pvo = null;
AccountHelperLocal helperL = null;
try
{
InitialContext ic = CVUtility.getInitialContext();
AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
helperL = home.create();
int size = PVOs.size();
int cvid = 0;
for ( int i=0;i<size;i++)
{
pvo = (PaymentMethodVO)PVOs.get(i);
cvid = this.getCVidForExtid("PaymentMethod",pvo.getExternalID());
if (cvid == 0){
helperL.savePaymentMethod(pvo);
}
logger.info("Added " + pvo.getTitle() + " paymentmethod record");
}
}catch(Exception e)
{
logger.debug("Error in adding PaymentMethodss : "+e);
e.printStackTrace();