Extracted the export to the dot format in a new class.
Converted the project to a web service.