def METHOD_NAME(self, newProjectFilePath, workflow_class):
    hdf5File = ProjectManager.createBlankProjectFile(newProjectFilePath)
    readOnly = False
    self.projectManager = ProjectManager(
        self, workflow_class, headless=True, workflow_cmdline_args=self._workflow_cmdline_args
    )
    self.projectManager._loadProject(hdf5File, newProjectFilePath, readOnly)
    self.projectManager.saveProject()