Converted SwaggerDocumentGenerator to groovy