Record[] subRecords = getSubRecords(); for (int i = 0; i < subRecords.length; i++) { Record subRecord = subRecords[i]; arrayList.addAll(Arrays.asList(subRecord.getColumns()));
if(arrayList==null){ arrayList = new ArrayList();
	public Column[] getColumns() {		ArrayList arrayList = getArrayList(COLUMNS);		Record[] subRecords = getSubRecords();		for (int i = 0; i < subRecords.length; i++) {			Record subRecord = subRecords[i];			arrayList.addAll(Arrays.asList(subRecord.getColumns()));		}		return (Column[]) arrayList.toArray(new Column[arrayList.size()]);	}