for (int i=0; i<attributeList.size(); i++) {
AttributeBase attr = null;
try
{
attr = (AttributeBase)attributeList.get(i);
AttributeType type = AttributeType.lookup(attr.getType());
if (type == AttributeType.EXTENSION_ID)
cdr.setExtensionID(attr.getValueString(lineParts));
else if (type == AttributeType.DATE_ANSWERED)
cdr.setDateTimeAnswered(((DateAttribute)attr).getDate(lineParts));