if (!itemsFound(results)) { System.out.println ("\tNo items found!"); }
    public static void doCMDLineQuery(String query)    {        System.out.println("Command line query: " + query);        try        {            Context c = new Context();            HashMap results = doQuery(c, query);                        List itemlist = getItemResults(results);            List colllist = getCollectionResults(results);            List commlist = getCommunityResults(results);                        if (communitiesFound(results))             {	            System.out.println("\n" + "Communities: ");    	        Iterator i = commlist.iterator();                	        while (i.hasNext())    	        {    	        	Object thishandle = i.next();    	            System.out.println("\t" + thishandle.toString());    	        }    	    }            if (collectionsFound(results))             {            	System.out.println("\n" + "Collections: ");            	Iterator j = colllist.iterator();                        	while (j.hasNext())	            {    	        	Object thishandle = j.next();    	            System.out.println("\t" + thishandle.toString());    	        }    	    }    	       	        System.out.println("\n" + "Items: ");            Iterator k = itemlist.iterator();                        while (k.hasNext())            {            	Object thishandle = k.next();                System.out.println("\t" + thishandle.toString());            }                        if (!itemsFound(results))            {             	System.out.println ("\tNo items found!");            }        }        catch (Exception e)        {            System.out.println("Exception caught: " + e);        }    }