Enumeration k; System.err.println("---- Services -----"); if(services != null) { k = services.keys(); while(k.hasMoreElements()) { String key = (String)k.nextElement(); System.err.println("Service: " + key +": " + services.get(key)); } } System.err.println("---- Types ----"); if(serviceTypes!=null) { k = serviceTypes.keys(); while(k.hasMoreElements()) { String key = (String)k.nextElement(); System.err.println("Type: " + key +": " + serviceTypes.get(key)); } } System.err.println("");
System.err.println(toString());
    public void printServices() {        Enumeration k;        System.err.println("---- Services -----");        if(services != null) {            k = services.keys();            while(k.hasMoreElements()) {                String key = (String)k.nextElement();                System.err.println("Service: " + key +": " + services.get(key));            }        }        System.err.println("---- Types ----");        if(serviceTypes!=null) {            k = serviceTypes.keys();            while(k.hasMoreElements()) {                String key = (String)k.nextElement();                System.err.println("Type: " + key +": " + serviceTypes.get(key));            }        }        System.err.println("");            }