package com.swistak.webapi;
import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

public class Main {
	public static void main(String[] args) throws ServiceException,
			RemoteException {

		SearchCommand search = SearchCommand.fraza("nokia").fraza_pomin("3310").cena_od(10).cena_do(20).miejscowosc("Warszawa").wojewodztwo(Wojewodztwo.mazowieckie);
		search.run();
		
		System.out.println(String.format("Found %d items", search.total_found.value.intValue()));
		for (Search_auction auction : search.search_auctions.value) {
			System.out.println(String.format("* %s", auction.getTitle()));
		}
	}
}

@@ -381,16 +381,126 @@
 n();%0A%09%09%0A
+%09%09if (search.total_found.value == null) %7B%0A%09%09%09System.out.println(String.format(%22Nothing found.%22));%0A%09%09%7D else %7B%0A%09
 %09%09System
@@ -585,16 +585,17 @@
 ()));%0A%09%09
+%09
 for (Sea
@@ -644,24 +644,25 @@
 ns.value) %7B%0A
+%09
 %09%09%09System.ou
@@ -715,16 +715,21 @@
 le()));%0A
+%09%09%09%7D%0A
 %09%09%7D%0A%09%7D%0A%7D

update the example, handle 0 hits