code: public String saveMonomerToStore(Monomer monomer) {
      String res = "";
      CloseableHttpResponse response = null;
  
      try {
        response = WSAdapterUtils.putResource(monomer.toJSON(),
            MonomerStoreConfiguration.getInstance()
                .getWebserviceNucleotidesPutFullURL());
        LOG.debug(response.getStatusLine().toString());
  
        JsonFactory jsonf = new JsonFactory();
        InputStream instream = response.getEntity().getContent();
  
        JsonParser jsonParser = jsonf.createParser(instream);
  
        while (!jsonParser.isClosed()) {
          JsonToken jsonToken = jsonParser.nextToken();
          if (JsonToken.FIELD_NAME.equals(jsonToken)) {
            String fieldName = jsonParser.getCurrentName();
            LOG.debug("Field name: " + fieldName);
            jsonParser.nextToken();
            if (fieldName.equals("monomerShortName")) {
              res = jsonParser.getValueAsString();
              break;
            }
          }
        }
  
        EntityUtils.consume(response.getEntity());
  
      } catch (Exception e) {
        LOG.error("Saving monomer failed!", e);
        return "";
      } finally {
        try {
          if (response != null) {
            response.close();
          }
        } catch (IOException e) {
          LOG.debug("Closing resources failed.", e);
          return res;
        }
      }
  
      return res;
    }
docs: Adds or updates a single monomer to the monomer store using the URL configured in {@code MonomerStoreConfiguration}
  .
  
  @param monomer to save
  @return webservice response