public Builder addAttributes(final Map<String, String> attributes) {
   if (null != attributes) {
     for (final String key : attributes.keySet()) {
       FlowFile.KeyValidator.validateKey(key);
     }
     for (final Map.Entry<String, String> entry : attributes.entrySet()) {
       final String key = entry.getKey();
       final String value = entry.getValue();
       if (key != null && value != null) {
         bAttributes.put(key, value);
       }
     }
   }
   return this;
 }
 public Builder addAttribute(final String key, final String value) {
   if (key != null && value != null) {
     bAttributes.put(FlowFile.KeyValidator.validateKey(key), value);
   }
   return this;
 }