What is the argument Object obj in this method used for? In the method, you are creating a String, printing it to System.out and writing it to yet another out. None of these operations use the argument obj anywhere.
What's the output you are getting, and what were you expecting?
I will suppress my every urge. But not this shameless plug:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!