protected void validateEdmPropertyOfStructuredType(final EdmStructuralType parentType,
final PropertyExpressionImpl property, final Token propertyToken) throws ExpressionParserException,
ExpressionParserInternalError {
try {
String propertyName = property.getUriLiteral();
EdmTyped edmProperty = parentType.getProperty(propertyName);
if (edmProperty != null) {
property.setEdmProperty(edmProperty);
property.setEdmType(edmProperty.getType());
} else {
// Tested with TestParserExceptions.TestPMvalidateEdmProperty CASE 3
throw FilterParserExceptionImpl.createPROPERTY_NAME_NOT_FOUND_IN_TYPE(parentType, property, propertyToken,
curExpression);
}