}
if ( type.isEmbedded( propertyName ) ) {
List<String> newPath = new LinkedList<String>( path );
newPath.add( propertyName );
return new PathedPropertyReference(
propertyName,
new HSearchEmbeddedEntityTypeDescriptor( type.getIndexedEntityType(), newPath, propertyHelper ),
false)
;
}
else {
return new PathedPropertyReference(
propertyName,
new HSearchPropertyTypeDescriptor(),
false
);
}