As I read it, you don't need 7 entries in the CSV, because the IMSSubscription, InitialFilterCriteria and UUID are fixed. (Also, the if statement only tests for 4.) Possibly better to make this an EXPECTED_NUMBER_OF_COLUMNS constant or something.