A York bail bondsman had to post his own bail this week after police arrested and charged him with attempting to trade bail for sex with a 22-year-old woman.

Michael Philip Cramer, 46, was arrested at an abandoned location in the 500 block of East King Street, York, where he thought he was meeting the unidentified woman to have sex Monday, police said.

The woman was released from York County Prison on bail posted by Central Booking Bail Bonds, who Cramer works for, on Feb. 22.

After meeting the woman, Cramer realized she didn't have money or a place to stay, police said. He suggested he become her "sugar daddy," and that he would take care of her, according to police.

Cramer then began sending the woman, who still owed Central Booking money for the bail bonds, text messages during the next few weeks, police said.

He told her that if she would meet him for sex, he would give her $100, according to police. Cramer paid the balance of what the woman owed on her bail bonds and then reminded her that he paid it off, police said. He sent her more text messages that said "ass of cash" and that she had a "sweet ass," according to police.

Police said the woman didn't welcome Cramer's advances and was afraid because Central Booking set up a phone application on her phone that lets the company know where she is at all times.

Cramer suggested the two meet at the abandoned property, the future home of the York Food Bank, on Monday, police said. He thought he was going to meet the woman to have sex, according to police. Instead, police arrested him on site.

Cramer told officers he thought it would be a thrill to have sex with a 22-year-old, so he drove his 2003 Ford pickup truck to the scene, police said. He admitted he told the woman he would give her money, according to police.

When police arrested Cramer, he had a towel, blanket, wet wash rag in a zip lock bag, paper towels and a condom with him, police said.

Cramer has been charged with encouraging prostitution and possession with the intent to use an instrument of crime. Police consider the truck he drove to the scene in an instrument of crime, according to charging documents obtained by Pennlive.