public static Response success ( SessionId sessionId , Object value ) { Response response = new Response ( ) ; response . setSessionId ( sessionId != null ? sessionId . toString ( ) : null ) ; response . setValue ( value ) ; response . setStatus ( ErrorCodes . SUCCESS ) ; response . setState ( ErrorCodes . SUCCESS_STRING ) ; return response ; }
Creates a response object for a successful command execution .