public void startElement(String uri, String localName, String qname, Attributes atts) { super.startElement(uri, localName, qname, atts); if (localName.equals(DataExport.FIELD_EXPORT)) { String type = atts.getValue(DataExport.EXPORT_TYPE); textImport = (type != null && type.equals(DataExport.EXPORT_TYPE_TEXT)); } else if (localName.equals(DataRecord.ENCODING_RECORD)) { // begin of record record = dataAccess.getPersistence().createNewRecord(); fieldsInImport = new ArrayList<String>(); return; } else { if (atts.getValue("key") != null && atts.getValue("key").equalsIgnoreCase("true")) { overrideKeyField = localName; } } }