In the "Orange Is the New Black" writer's room, life really does imitate art.

Lauren Morelli, a writer for the hit Netflix show, and her husband jointly filed for divorce after Morelli realized upon joining the "OITNB" staff that she was a lesbian. She says the story line between Piper Chapman (Taylor Schilling) and her ex-girlfriend Alex Vause (Laura Prepon) was a huge push for her to come out, after only being married a few months.

PHOTOS: Stars Who've Come Out as Bisexual

"I was nervous about the first love scene I'd written for Alex and Piper," Morelli wrote in an essay for Identities.Mic in May. "I'd loved writing it, loved watching a tenderness emerge in their relationship where passion always seemed to be the ruling principle, but by that time, I was so deep in my own self-doubt that I constantly felt like a fraud. I was sure it was bleeding into my writing. How could it not? I was married to a man, but I wasn't straight."

"I found a mouthpiece for my own desires and a glimmer of what my future could look like," she added of the characters.

NEWS: Martha Stewart Slams Orange Is the New Black

Morelli is now dating "OITNB" actress Samira Wiley, who plays Poussey on the show. The ladies made their red-carpet debut as a couple at the 2014 Emmy Awards.