}
} else {
propertyNames = Collections.singletonList(x.getSimpleName());
}
PropertyPath toReturn = createPropertyPath(currentType, propertyNames);
x.setReferent(toReturn);
// Also update the referents for the compound ids, just in case they're needed later
if (x.isCompound()) {
for (int i = 0, j = x.getCompoundName().size(); i < j; i++) {
x.getCompoundName().get(i).cast(Property.class).setReferent(toReturn.getPath().get(i));
}
}
return;
}