code: protected Map<String, Object> findAccountViaRestApi(final Map<String, Object> headers) {
          HttpResponse response = null;
          try {
              response = HttpUtils.execute(properties.getUrl(), properties.getMethod(),
                  properties.getBasicAuthUsername(), properties.getBasicAuthPassword(),
                  new HashMap<>(), headers);
              if (response != null && response.getEntity() != null && response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
                  return MAPPER.readValue(response.getEntity().getContent(), Map.class);
              }
          } catch (final Exception e) {
              LOGGER.error(e.getMessage(), e);
          } finally {
              HttpUtils.close(response);
          }
          return new HashMap<>();
      }
docs: Find account via rest api and return user-info map.
  
  @param headers the headers
  @return the map