/**
 * 
 */
package gov.nih.nci.cananolab.dto.common;

import java.util.ArrayList;
import java.util.List;

/**
 * @author tanq, cais
 *
 */
public class OtherPointOfContactsBean {

	private List<PointOfContactBean> otherPointOfContacts = new ArrayList<PointOfContactBean>();
	/**
	 * 
	 */
	public OtherPointOfContactsBean() {
		super();
	}
	
	public List<PointOfContactBean> getOtherPointOfContacts() {
		return otherPointOfContacts;
	}
	public void setOtherPointOfContacts(List<PointOfContactBean> otherPointOfContacts) {
		this.otherPointOfContacts = otherPointOfContacts;
	}

	public void addPointOfContact() {
		otherPointOfContacts.add(new PointOfContactBean());
	}
	
	public void removePointOfContact(int ind) {
		otherPointOfContacts.remove(ind);
	}
	
	public void setPointOfContact(String pocIndex, PointOfContactBean pocBean) {
		this.otherPointOfContacts.set(Integer.parseInt(pocIndex), pocBean);
	}
}

@@ -634,24 +634,130 @@
 ontact() %7B%0D%0A
+%09%09if (otherPointOfContacts==null) %7B%0D%0A%09%09%09otherPointOfContacts = new ArrayList%3CPointOfContactBean%3E();%0D%0A%09%09%7D%0D%0A
 %09%09otherPoint

initialize otherPointOfContacts if null