changed getResponseObjectByReturnType to static