the else is needed, we only set srcWorkspace to $this->workspaceName if its not provided.