code: private static void write(BERoleConfig config,
                                boolean wholeElement,
                                boolean skipIfAllNull,
                                PrintWriter writer) {
  
          if (wholeElement) {
              if (skipIfAllNull && config.getCallSSL() == null
                      && config.getCallBasicAuth() == null
                      && config.getCallUsername() == null
                      && config.getCallPassword() == null
                      && config.getCallbackSSL() == null
                      && config.getCallbackBasicAuth() == null
                      && config.getIPList() == null) {
                  return;
              }
              writer.print("  <" + _CONFIG);
          }
  
          writeAttribute(_ROLE, config.getRole(), writer);
          writeAttribute(_CALLSSL, config.getCallSSL(), writer);
          writeAttribute(_CALLBASICAUTH, config.getCallBasicAuth(), writer);
          writeAttribute(_CALLUSERNAME, config.getCallUsername(), writer);
          writeAttribute(_CALLPASSWORD, config.getCallPassword(), writer);
          writeAttribute(_CALLBACKSSL, config.getCallbackSSL(), writer);
          writeAttribute(_CALLBACKBASICAUTH,
                         config.getCallbackBasicAuth(),
                         writer);
          writeAttribute(_IPLIST, config.getIPList(), writer);
  
          if (wholeElement) {
              writer.println("/>");
          }
      }
docs: Write all the defined attributes of the given <code>BERoleConfig</code>,
  surrounding them with the appropriate element start/end text if
  <code>wholeElement</code> is true. Skip the entire element if
  skipIfAllNull is true.