Object entity = helper.getEntityNamed(entityName);
// Check the existence of the state field on the entity
if ((entity != null) && expression.hasSpaceAfterStateFieldPathExpression()) {
StateFieldPathExpression pathExpression = getStateFieldPathExpression(expression.getStateFieldPathExpression());
String stateFieldValue = (pathExpression != null) ? pathExpression.toParsedText() : null;
if (ExpressionTools.stringIsNotEmpty(stateFieldValue)) {
// State field without a dot
if (stateFieldValue.indexOf(".") == -1) {