code: public void clearAttributesWithExclude(final String... exclude) throws DevFailed {
          final String[] toExclude = new String[exclude.length];
          for (int i = 0; i < toExclude.length; i++) {
              toExclude[i] = exclude[i].toLowerCase(Locale.ENGLISH);
          }
          for (final String attributeName : dynamicAttributes.keySet()) {
              if (!ArrayUtils.contains(toExclude, attributeName)) {
                  removeAttribute(attributeName);
              }
          }
      }
docs: Remove all dynamic attributes with exceptions
  
  @param exclude The attribute that will not be removed
  @throws DevFailed