return bills;
}
private SpotCheckBill extractBill(String[] billParts) {
SpotCheckBill bill = new SpotCheckBill();
bill.setCurrentAmendment(true);
bill.id = billParts[0].trim();
bill.setTitle(billParts[2].trim());
bill.law = billParts[3].trim();
bill.setSummary(billParts[4].trim());
bill.setActions(extractBillActions(billParts));
bill.setSponsor(extractSponsor(billParts[1]));
bill.setAmendments(extractAmendments(bill));
if (isSenateBill(bill)) {
bill.setCosponsors(extractSenateCosponsors(billParts[1]));
} else { // is assembly bill
bill.setCosponsors(extractAssemblyCosponsors(billParts[1]));
bill.setMultisponsors(extractMultisponsors(billParts[1]));
}
return bill;
}