@Override public Properties getProperties() { final String[] names = metaData.getColumnNames(); if (names == null) { throw new IllegalStateException("Cannot create properties without meta data"); } Properties props = new Properties(); for (int i = 0; i < currentRow.length; i++) { String value = currentRow[i]; if (value != null) { props.setProperty(names[i], value); } } return props; } }