Washington, July 18 : Troubled singer Britney Spears has finally ended her painful custody battle with her ex-husband Kevin Federline, losing sole rights of her sons to him.
K-Fed's longtime attorney Mark Vincent Kaplan made the news public.
He said that the divorced duo have reached a settlement in their long-gestating custody case.
According to the agreement signed by all parties, Federline gets sole legal and physical custody of sons Sean Preston and Jayden James and Spears will have visitation rights.
"The case has been settled," E! Online quoted Kaplan, as saying.
"The court still has to approve it," he added.
The case had been set to go to trial next month but all had been hoping to settle up beforehand.
But although this is theoretically good news for Federline, Kaplan maintains that this isn't exactly what his client had in mind.
"Kevins was not [out] to get custody. Kevin's goal was to set up some kind of template so the mother of his children can co-parent," Kaplan said.
"He said I need to have Britney to be involved in the co-parenting of the kids but I need there to be a structure," he said.
But this is the structure he got and "Kevin is absolutely delighted," Kaplan added.