}
private void writeOneRowPerFormat(List<? extends ProfileResourceNode> nodes) {
try {
for (ProfileResourceNode node : nodes) {
NodeMetaData metaData = node.getMetaData();
//ProfileResourceNode parent = node.getParent();
for (Format format : node.getFormatIdentifications()) {
String[] nodeEntries = new String[] {
nullSafeNumber(node.getId()),
//parent != null ? nullSafeNumber(parent.getId()) : "",
nullSafeNumber(node.getParentId()),
node.getUri().toString(),
toFilePath(node.getUri()),
toFileName(metaData.getName()),
nullSafeName(metaData.getIdentificationMethod()),
metaData.getNodeStatus().getStatus(),
nullSafeNumber(metaData.getSize()),
metaData.getResourceType().getResourceType(),
metaData.getExtension(),
nullSafeDate(metaData.getLastModifiedDate(), dateFormat),
node.getExtensionMismatch().toString(),
metaData.getHash(),
nullSafeNumber(node.getIdentificationCount()),
format.getPuid(),
format.getMimeType(),
format.getName(),
format.getVersion(),