if (!serviceColours.contains(service)) {
System.out.println("Service: "+service); if (!serviceColours.containsKey(service)) {
    Integer getColour(String service) {        if (!serviceColours.contains(service)) {            serviceColours.put(service, nextColour());        }        return (Integer) serviceColours.get(service);    }