class ConfigurableUDPSource {

    public static void sendFromDatagram(DatagramPacket packet, List<String> sources) {
        log.debug("UDP Packet received");
        log.trace("{}", new String(packet.getData()));
        InetAddress address = packet.getAddress();
        int port = packet.getPort();
        log.debug("UDP message received from address '{}' and port '{}' for sources {}", address, port, sources);

        for (String sourceName : sources) {
            // Notify
            if (receivingFromServer(sourceName, port, address)) {
                log.debug("Sending Notification for source '{}'", sourceName);
                notificationHandlers.get(sourceName).handleMessage(packet);
            }
        }
    }

}