Wrongly remanded on different identity

I have been sent to judicial custody on different identity, which is not mine. A false case has been loged against me by informant impersonating my identity to grab my property, stating me as different identity, which is not mine.I had provided my real identity before court but on the basis of police investigation I was sent judicial custody. I then applied bail petition before magistrate, but it was rejected.I then applied for bail to session court, but it rejected the bail saying bail petition is not maintainable, as petition should be file in the name of person remanded. What should I do now.ave been sent to judicial custody on different identity, which is not mine. A false case has been loged against me by informant impersonating my identity to grab my property, stating me as different identity, which is not mine.I had provided my real identity before court but on the basis of police investigation I was sent judicial custody. I then applied bail petition before magistrate, but it was rejected.I then applied for bail to session court, but it rejected the bail saying bail petition is not maintainable, as petition should be file in the name of person remanded. What should I do now.