code: public void addAttributesExcept(Map  params, String ... exceptions){
          List exceptionList = Arrays.asList(exceptions);
          for(Object key: params.keySet()){
              if(!exceptionList.contains(key)){
                  attribute(key.toString(), params.get(key).toString());
              }
          }
      }
docs: Will add values from params map except the exceptions.
  
  @param params map with values. Key used as an attribute name, value as value.
  @param exceptions list of excepted keys.