protected base_resource get_resource(nitro_service service,options option) throws Exception
	{
		if (!service.isLogin())
			service.login();

		base_resource[] response = get_request(service, option);
		if (response != null) {
			return response[0];
		} 
		return null;
	}
protected base_resource get_resource ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; base_resource [ ] response = get_request ( service , option ) ; if ( response != null ) { return response [ 0 ] ; } return null ; }
Use this method to perform a get operation on netscaler resource.
@param service nitro_service object.
@param option options class object.
@return Array of nitro resources of specified type.
@throws Exception Nitro exception is thrown.