continue;
}
final Processor<?, ?> processor = node.getProcessor();
final Collection<Field> allAttributes = ParserUtils.getAllAttributes(processor.getOutputType());
final BiMap<String, String> outputMapper = node.getOutputMapper();
ProcessorDependency customDependency = null;
for (Field allAttribute : allAttributes) {
String attributeName = allAttribute.getName();
final String mappedName = outputMapper.get(attributeName);
if (mappedName != null) {
attributeName = mappedName;
}
if (sourceKeys.contains(attributeName)) {
if (customDependency == null) {
final Class<? extends Processor<?, ?>> processorClass = (Class<? extends Processor<?, ?>>) processor.getClass();
customDependency = new ProcessorDependency(processorClass, getClass(),
Collections.singleton(attributeName));
dependencies.add(customDependency);
} else {
customDependency.addCommonInput(attributeName);
}
}
}
}
return dependencies;