Write the replacement files

def _writeReplacementFiles(self, session, directory, name):
        """
        Write the replacement files
        """
        if self.replaceParamFile:
            self.replaceParamFile.write(session=session, directory=directory,
                                        name=name)

        if self.replaceValFile:
            self.replaceValFile.write(session=session, directory=directory,
                                      name=name)