}
stream.println();
stream.println("Available services:");
ServiceFactory serviceFactory = new ServiceFactory();
for (String serviceName : new TreeSet<String>(
serviceFactory.availableServices())) {
stream.println(" " + serviceName);
}
}
public static void main(String... args) throws Exception {
Main main = new Main(