protected ResponseItem success ( ) { ResponseItem response = new ResponseItem ( ) ; Field statusField = ReflectionUtils . findField ( ResponseItem . class , "status" ) ; ReflectionUtils . makeAccessible ( statusField ) ; ReflectionUtils . setField ( statusField , response , "success" ) ; return response ; }
Construct default success response for commands without return value .