DataStructureType originalType = originalStructure.getStructureType();
switch (originalType) {
case Database:
return new DatabaseToTextStructureConverter(rootNode);
case None:
throw new NotSupportedException("No structure to convert.");
default:
throw new NotSupportedException("Unsupported conversion: " + originalType + " to Text");
}
}