Custody hearing held for girl locked in closet for a year.