return (tgt != null && !tgt.isEmpty()) ? tgt.getContent().getID() : null;
}
private static void applyFunctions(Operation op, OperationPipeline pipeline) {
OperationFunctionCollector collector = pipeline.getType().getFunctionCollector();
OperationFunctions funcs = collector.collect(pipeline);
op.setProperty(Operation.TRANSFORMATION_ID, funcs.getFirstTransformationId());
op.setFunctionChain(funcs.getFunctions());
}