// I have no paths to resolve the resolve value
if (inputPaths.isEmpty()) {
// if there are no more unresolved vars, I add a path with only the resolve himself
if (_finder.find(resolveNode._resolve.getValue()).isEmpty()) {
// If I have valitors, I must resolve them
Rule parent = resolveNode._resolve.getParent();
if (parent != null && !parent.getValidators().isEmpty()) {
PathCollection validatorsPaths = getValidatorsPaths(parent);
// if I can resolve validators
if (!validatorsPaths.isEmpty()) {
validatorsPaths.addToAll(new PathEntry(varExpNode._varExpression, resolveNode._resolve));
varExtPaths.addAll(validatorsPaths);
}
} else {
varExtPaths.addSingle(new PathEntry(varExpNode._varExpression, resolveNode._resolve));
}
}
// varExtPaths.addSingle(new PathEntry(varExpNode._varExpression, resolveNode._resolve));
} else {
// for each path which resolves the resolve value I add the resolve himself (as first)
// then add all to the main var expression paths
inputPaths.prependToAll(new PathEntry(varExpNode._varExpression, resolveNode._resolve));
Rule parent = resolveNode._resolve.getParent();
// If I have valitors, I must resolve them
if (parent != null && !parent.getValidators().isEmpty()) {
PathCollection validatorsPaths = getValidatorsPaths(parent);
// if I can resolve validators
if (!validatorsPaths.isEmpty()) {
validatorsPaths.addToAll(new PathEntry(varExpNode._varExpression, resolveNode._resolve));
varExtPaths.addAll(inputPaths.multiply(validatorsPaths));