protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		xen_health_disk_responses result = (xen_health_disk_responses) service.get_payload_formatter().string_to_resource(xen_health_disk_responses.class, response);
		if(result.errorcode != 0)
		{
			if (result.errorcode == SESSION_NOT_EXISTS)
				service.clear_session();
			throw new nitro_exception(result.message, result.errorcode, (base_response [])result.xen_health_disk_response_array);
		}
		xen_health_disk[] result_xen_health_disk = new xen_health_disk[result.xen_health_disk_response_array.length];
		
		for(int i = 0; i < result.xen_health_disk_response_array.length; i++)
		{
			result_xen_health_disk[i] = result.xen_health_disk_response_array[i].xen_health_disk[0];
		}
		
		return result_xen_health_disk;
	}
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { xen_health_disk_responses result = ( xen_health_disk_responses ) service . get_payload_formatter ( ) . string_to_resource ( xen_health_disk_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( result . message , result . errorcode , ( base_response [ ] ) result . xen_health_disk_response_array ) ; } xen_health_disk [ ] result_xen_health_disk = new xen_health_disk [ result . xen_health_disk_response_array . length ] ; for ( int i = 0 ; i < result . xen_health_disk_response_array . length ; i ++ ) { result_xen_health_disk [ i ] = result . xen_health_disk_response_array [ i ] . xen_health_disk [ 0 ] ; } return result_xen_health_disk ; }
<pre>
Converts API response of bulk operation into object and returns the object array in case of get request.
</pre>