code: def write(self, endpoints, filename):
          # type: (List[EndpointDescription], str) -> None
          
          with open(filename, "w") as filep:
              filep.write(self.to_string(endpoints))
docs: Writes the given endpoint descriptions to the given file
  
          :param endpoints: A list of EndpointDescription beans
          :param filename: Name of the file where to write the XML
          :raise IOError: Error writing the file