@Override
  public void prepare(Object configurationObject) {

    mapper = StreamsJacksonMapper.getInstance();

    uriBuilder =
        new URIBuilder()
            .setScheme(this.configuration.getProtocol())
            .setHost(this.configuration.getHostname())
            .setPath(this.configuration.getResourcePath());

    if (!Strings.isNullOrEmpty(configuration.getAccessToken()))
      uriBuilder = uriBuilder.addParameter("access_token", configuration.getAccessToken());
    if (!Strings.isNullOrEmpty(configuration.getUsername())
        && !Strings.isNullOrEmpty(configuration.getPassword())) {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append(configuration.getUsername());
      stringBuilder.append(":");
      stringBuilder.append(configuration.getPassword());
      String string = stringBuilder.toString();
      authHeader = Base64.encodeBase64String(string.getBytes());
    }
    httpclient = HttpClients.createDefault();
  }
 public SimpleHTTPGetProcessor(HttpProcessorConfiguration processorConfiguration) {
   LOGGER.info("creating SimpleHTTPGetProcessor");
   LOGGER.info(processorConfiguration.toString());
   this.configuration = processorConfiguration;
 }