code: public static GelfSender createSender(final HostAndPortProvider hostAndPortProvider, final ErrorReporter errorReporter,
              final Map<String, Object> senderSpecificConfigurations) {
          GelfSenderConfiguration senderConfiguration = new GelfSenderConfiguration() {
  
              @Override
              public int getPort() {
                  return hostAndPortProvider.getPort();
              }
  
              @Override
              public String getHost() {
                  return hostAndPortProvider.getHost();
              }
  
              @Override
              public ErrorReporter getErrorReporter() {
                  return errorReporter;
              }
  
              @Override
              public Map<String, Object> getSpecificConfigurations() {
                  return senderSpecificConfigurations;
              }
  
          };
  
          return createSender(senderConfiguration);
      }
docs: Create a GelfSender based on the configuration.
  
  @param hostAndPortProvider the host and port
  @param errorReporter the error reporter
  @param senderSpecificConfigurations configuration map
  @return a new {@link GelfSender} instance