}
else if ("udp".equals(transport)) {
graphite = new GraphiteUDP(hostname, port);
}
else if ("pickle".equals(transport)) {
graphite = new PickledGraphite(hostname, port, SocketFactory.getDefault(), charset, getProperty(BATCH_SIZE, Integer.TYPE, 100));
}
else {
throw new IllegalArgumentException("Invalid graphite transport: " + transport);
}
}