{
// Save CustomFields
Vector custfieldVec = promotionvo.getCustomfield();
InitialContext ic = CVUtility.getInitialContext();
CustomFieldLocalHome custHome = (CustomFieldLocalHome)ic.lookup("local/CustomField");
CustomFieldLocal custRemote = custHome.create();
custRemote.setDataSource(this.dataSource);
for (int i =0;i<custfieldVec.size();i++)
{
CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
custFieldVO.setRecordID( promotionid );
custRemote.addCustomField(custFieldVO);
}
AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
AuthorizationLocal authorizationLocal = authorizationHome.create();
authorizationLocal.setDataSource(dataSource);