protected boolean setup(String className) { if (!isClassAvailable(className)) { log.error("Tried to enable StatsD Reporter, but class {} was not found", className); return false; } List<HostPort> hosts = getFullHostList(); if (hosts == null || hosts.isEmpty()) { log.error("No hosts specified, cannot enable StatsD Reporter"); return false; } return true; } }