StringBuffer used in Rest API DAO