<pre>
converts nitro response into object and returns the object array in case of get request.
</pre>
330439
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
		appfw_stats[] resources = new appfw_stats[1];
		appfw_response result = (appfw_response) service.get_payload_formatter().string_to_resource(appfw_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.appfw;
		return resources;
	}
531883
public static cacheobject[] get(nitro_service service) throws Exception{
		cacheobject obj = new cacheobject();
		cacheobject[] response = (cacheobject[])obj.get_resources(service);
		return response;
	}
379964
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		sdxtools_image_responses result = (sdxtools_image_responses) service.get_payload_formatter().string_to_resource(sdxtools_image_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.sdxtools_image_response_array);
		}
		sdxtools_image[] result_sdxtools_image = new sdxtools_image[result.sdxtools_image_response_array.length];
		
		for(int i = 0; i < result.sdxtools_image_response_array.length; i++)
		{
			result_sdxtools_image[i] = result.sdxtools_image_response_array[i].sdxtools_image[0];
		}
		
		return result_sdxtools_image;
	}
850510
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		ns_ns_savedconfig_responses result = (ns_ns_savedconfig_responses) service.get_payload_formatter().string_to_resource(ns_ns_savedconfig_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.ns_ns_savedconfig_response_array);
		}
		ns_ns_savedconfig[] result_ns_ns_savedconfig = new ns_ns_savedconfig[result.ns_ns_savedconfig_response_array.length];
		
		for(int i = 0; i < result.ns_ns_savedconfig_response_array.length; i++)
		{
			result_ns_ns_savedconfig[i] = result.ns_ns_savedconfig_response_array[i].ns_ns_savedconfig[0];
		}
		
		return result_ns_ns_savedconfig;
	}
121399
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		br_broker_responses result = (br_broker_responses) service.get_payload_formatter().string_to_resource(br_broker_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.br_broker_response_array);
		}
		br_broker[] result_br_broker = new br_broker[result.br_broker_response_array.length];
		
		for(int i = 0; i < result.br_broker_response_array.length; i++)
		{
			result_br_broker[i] = result.br_broker_response_array[i].br_broker[0];
		}
		
		return result_br_broker;
	}
1290623
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		ns_vm_template_responses result = (ns_vm_template_responses) service.get_payload_formatter().string_to_resource(ns_vm_template_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.ns_vm_template_response_array);
		}
		ns_vm_template[] result_ns_vm_template = new ns_vm_template[result.ns_vm_template_response_array.length];
		
		for(int i = 0; i < result.ns_vm_template_response_array.length; i++)
		{
			result_ns_vm_template[i] = result.ns_vm_template_response_array[i].ns_vm_template[0];
		}
		
		return result_ns_vm_template;
	}
579989
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		snmp_trap_responses result = (snmp_trap_responses) service.get_payload_formatter().string_to_resource(snmp_trap_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.snmp_trap_response_array);
		}
		snmp_trap[] result_snmp_trap = new snmp_trap[result.snmp_trap_response_array.length];
		
		for(int i = 0; i < result.snmp_trap_response_array.length; i++)
		{
			result_snmp_trap[i] = result.snmp_trap_response_array[i].snmp_trap[0];
		}
		
		return result_snmp_trap;
	}
558039
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		device_profile_responses result = (device_profile_responses) service.get_payload_formatter().string_to_resource(device_profile_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.device_profile_response_array);
		}
		device_profile[] result_device_profile = new device_profile[result.device_profile_response_array.length];
		
		for(int i = 0; i < result.device_profile_response_array.length; i++)
		{
			result_device_profile[i] = result.device_profile_response_array[i].device_profile[0];
		}
		
		return result_device_profile;
	}
193746
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		host_cpu_core_responses result = (host_cpu_core_responses) service.get_payload_formatter().string_to_resource(host_cpu_core_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.host_cpu_core_response_array);
		}
		host_cpu_core[] result_host_cpu_core = new host_cpu_core[result.host_cpu_core_response_array.length];
		
		for(int i = 0; i < result.host_cpu_core_response_array.length; i++)
		{
			result_host_cpu_core[i] = result.host_cpu_core_response_array[i].host_cpu_core[0];
		}
		
		return result_host_cpu_core;
	}
872161
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
		bridge_stats[] resources = new bridge_stats[1];
		bridge_response result = (bridge_response) service.get_payload_formatter().string_to_resource(bridge_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.bridge;
		return resources;
	}
338881
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
		protocolipv6_stats[] resources = new protocolipv6_stats[1];
		protocolipv6_response result = (protocolipv6_response) service.get_payload_formatter().string_to_resource(protocolipv6_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.protocolipv6;
		return resources;
	}
891482
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		ns_clusternode_responses result = (ns_clusternode_responses) service.get_payload_formatter().string_to_resource(ns_clusternode_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.ns_clusternode_response_array);
		}
		ns_clusternode[] result_ns_clusternode = new ns_clusternode[result.ns_clusternode_response_array.length];
		
		for(int i = 0; i < result.ns_clusternode_response_array.length; i++)
		{
			result_ns_clusternode[i] = result.ns_clusternode_response_array[i].ns_clusternode[0];
		}
		
		return result_ns_clusternode;
	}
883797
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		ns_ns_runningconfig_responses result = (ns_ns_runningconfig_responses) service.get_payload_formatter().string_to_resource(ns_ns_runningconfig_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.ns_ns_runningconfig_response_array);
		}
		ns_ns_runningconfig[] result_ns_ns_runningconfig = new ns_ns_runningconfig[result.ns_ns_runningconfig_response_array.length];
		
		for(int i = 0; i < result.ns_ns_runningconfig_response_array.length; i++)
		{
			result_ns_ns_runningconfig[i] = result.ns_ns_runningconfig_response_array[i].ns_ns_runningconfig[0];
		}
		
		return result_ns_ns_runningconfig;
	}
327519
public static statobjects get(nitro_service service) throws Exception{
		statobjects obj = new statobjects();
		statobjects[] response = (statobjects[])obj.get_resources(service);
		return response[0];
	}
654078
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		ns_ssl_certkey_responses result = (ns_ssl_certkey_responses) service.get_payload_formatter().string_to_resource(ns_ssl_certkey_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.ns_ssl_certkey_response_array);
		}
		ns_ssl_certkey[] result_ns_ssl_certkey = new ns_ssl_certkey[result.ns_ssl_certkey_response_array.length];
		
		for(int i = 0; i < result.ns_ssl_certkey_response_array.length; i++)
		{
			result_ns_ssl_certkey[i] = result.ns_ssl_certkey_response_array[i].ns_ssl_certkey[0];
		}
		
		return result_ns_ssl_certkey;
	}
300028
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		ns_command_responses result = (ns_command_responses) service.get_payload_formatter().string_to_resource(ns_command_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.ns_command_response_array);
		}
		ns_command[] result_ns_command = new ns_command[result.ns_command_response_array.length];
		
		for(int i = 0; i < result.ns_command_response_array.length; i++)
		{
			result_ns_command[i] = result.ns_command_response_array[i].ns_command[0];
		}
		
		return result_ns_command;
	}
1251390
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
	{
		host_device_responses result = (host_device_responses) service.get_payload_formatter().string_to_resource(host_device_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.host_device_response_array);
		}
		host_device[] result_host_device = new host_device[result.host_device_response_array.length];
		
		for(int i = 0; i < result.host_device_response_array.length; i++)
		{
			result_host_device[i] = result.host_device_response_array[i].host_device[0];
		}
		
		return result_host_device;
	}