List<PathArgument> newPathArgs = new ArrayList<>();
for(PathArgument pathArg: candidatePath.getPathArguments()) {
newPathArgs.add(pathArg);
List<PathArgument> newPathArgs = new ArrayList<>();
for(PathArgument pathArg: candidatePath.getPathArguments()) {
newPathArgs.add(pathArg);