@Override
public PathedPropertyReferenceSource normalizePropertyPathIntermediary(
PropertyPath path, Tree propertyName) {
HSearchTypeDescriptor sourceType = (HSearchTypeDescriptor) path.getLastNode().getType();
if ( !sourceType.hasProperty( propertyName.getText() ) ) {
throw log.getNoSuchPropertyException( sourceType.toString(), propertyName.getText() );
}
List<String> newPath = new LinkedList<String>( path.getNodeNamesWithoutAlias() );
newPath.add( propertyName.getText() );
PathedPropertyReference property = new PathedPropertyReference(
propertyName.getText(),
new HSearchEmbeddedEntityTypeDescriptor(
sourceType.getIndexedEntityType(),
newPath,
propertyHelper
),
false
);