private void copyProperties()

in src/main/java/org/apache/sling/pipes/internal/WritePipe.java [165:184]


    private void copyProperties(@Nullable Resource conf, Resource target)  {
        ValueMap writeMap = conf != null ? conf.adaptTo(ValueMap.class) : null;
        ModifiableValueMap targetProperties = target.adaptTo(ModifiableValueMap.class);
        boolean modified = false;

        //writing current node
        if (properties != null && writeMap != null) {
            for (Map.Entry<String, Object> entry : writeMap.entrySet()) {
                if (!IGNORED_PROPERTIES.contains(entry.getKey())) {
                    String key = parent != null ? bindings.instantiateExpression(entry.getKey()) : entry.getKey();
                    Object value = computeValue(target, key, entry.getValue());
                    copyProperty(targetProperties, target, key, value);
                    modified = true;
                }
            }
        }
        if (modified) {
            plumber.markWithJcrLastModified(this, target);
        }
    }