code: protected void setNodeAttributes(Object node, Map attributes) {
          // set the properties
          //noinspection unchecked
          for (Map.Entry entry : (Set<Map.Entry>) attributes.entrySet()) {
              String property = entry.getKey().toString();
              Object value = entry.getValue();
              InvokerHelper.setProperty(node, property, value);
          }
      }
docs: Maps attributes key/values to properties on node.
  
  @param node       the object from the node
  @param attributes the attributes to be set