Changing the attribute renderers to return the output instead of printing it to Writer (to fix the extra comma problem)