code: public Element toElement(final SalesforceDatastore datastore) {
          final Element ds = getDocument().createElement("salesforce-datastore");
          ds.setAttribute("name", datastore.getName());
          if (!Strings.isNullOrEmpty(datastore.getDescription())) {
              ds.setAttribute("description", datastore.getDescription());
          }
  
          appendElement(ds, "username", datastore.getUsername());
          appendElement(ds, "password", encodePassword(datastore.getPassword()));
          appendElement(ds, "security-token", datastore.getSecurityToken());
  
          final String endpointUrl = datastore.getEndpointUrl();
          if (!Strings.isNullOrEmpty(endpointUrl)) {
              appendElement(ds, "endpoint-url", endpointUrl);
          }
  
          return ds;
      }
docs: Externalizes a {@link CouchDbDatastore} to an XML element
  
  @param datastore
  @return