JACKSONVILLE, Fla. -- A woman who stole a newborn from a Florida hospital two decades ago and raised the child as her own has been sentenced to 18 years for kidnapping. She will also serve five years concurrently on a charge of federal custody interference.

Gloria Williams was sentenced for the kidnapping of Kamiyah Mobley from a hospital in Jacksonville in July 1998.

The 52-year-old Williams testified at her trial that she wore scrubs to look like a nurse and put the infant in a bag and secreted her out of the hospital. She said she was in an abusive relationship at the time and suffering from depression.

Get Breaking News Delivered to Your Inbox

On Friday, Williams stood next to her attorneys wearing an orange jumpsuit as the judge read the sentence. She looked down as if in prayer and did not visibly react to the judge's words.

"There are no winners and no losers in this case," Judge Marianne Aho said just before announcing the sentence. Aho said many people had suffered in the case, including Williams.

"The family in this case suffered not knowing what happened to their child for approximately 18 years."

Williams got credit for 511 days she's already served, and has 30 days to appeal the sentencing.

Williams raised Mobley - who grew up as Alexis Manigo - in Walterboro, South Carolina, until her arrest in 2017. She didn't tell the girl of her true identity until the girl discovered she couldn't get a driver's license because she didn't have a valid birth certificate or Social Security card.

After finding out her true identity, Mobley told a friend about it. Eventually, the National Center for Missing and Exploited Children received an anonymous tip about Kamiyah's whereabouts, and authorities were alerted and Williams arrested.

Since learning her identity, Kamiyah has legally changed her name from Alexis and reconnected with her birth parents Shanara Mobley and Craig Aiken, according to news reports.

Kamiyah has spent time with her biological parents but still supports the only mother she knew. She has professed sadness that Williams faces years in a prison cell, and had pleaded for a shorter sentence. She showed up in tears at Williams' first hearing.

"I believe now that this is over, we can continue on our journey of healing together as a family and support our daughter on her decision making," Aiken said in a brief statement to reporters after the hearing.

Kamiyah did not attend Friday's sentencing hearing, according to news reports.

Williams testified at her trial earlier this year that when she stole the newborn Kamiyah Mobley in 1998, she had lost custody of her two other children and was in an abusive relationship that led her to miscarry about a month before. After the loss of her pregnancy, she drove to Jacksonville from South Carolina.

She had testified that she had no plans to kidnap a child.

"I felt like I was on autopilot. My life was out of control, I lost everything," she had said.