Why would you copy the output over to a new stringbuffer and return that? Just return the original var...