The problem that you have is that even though you believed that the item that you took was abandoned, it was not yours to take. I suggest that you consult with a criminal defense attorney about the facts of the case pending against you and the charge and the best way to try and resolve it.