MarcReader reader = new MarcStreamReader(input);
while (reader.hasNext()) {
Record record = reader.next();
// check if the cataloging agency is DLC
List result = record.find("040", "DLC");
if (result.size() > 0)
System.out.println("Agency for this record is DLC");
// there is no specific find for a specific subfield
// so to check if it is the orignal cataloging agency