protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
		protocolicmp_stats[] resources = new protocolicmp_stats[1];
		protocolicmp_response result = (protocolicmp_response) service.get_payload_formatter().string_to_resource(protocolicmp_response.class, response);
		if(result.errorcode != 0) {
			if (result.errorcode == 444) {
				service.clear_session();
			}
			if(result.severity != null)
			{
				if (result.severity.equals("ERROR"))
					throw new nitro_exception(result.message,result.errorcode);
			}
			else
			{
				throw new nitro_exception(result.message,result.errorcode);
			}
		}
		resources[0] = result.protocolicmp;
		return resources;
	}
protected base_resource [ ] get_nitro_response ( nitro_service service , String response ) throws Exception { protocolicmp_stats [ ] resources = new protocolicmp_stats [ 1 ] ; protocolicmp_response result = ( protocolicmp_response ) service . get_payload_formatter ( ) . string_to_resource ( protocolicmp_response . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == 444 ) { service . clear_session ( ) ; } if ( result . severity != null ) { if ( result . severity . equals ( "ERROR" ) ) throw new nitro_exception ( result . message , result . errorcode ) ; } else { throw new nitro_exception ( result . message , result . errorcode ) ; } } resources [ 0 ] = result . protocolicmp ; return resources ; }
<pre>
converts nitro response into object and returns the object array in case of get request.
</pre>