if (value.endsWith("\"")) {
value = value.substring(0, value.length()-1);
}
value = RuleBuilderFormatUtil.formatDate(RuleBuilderFormatUtil.parseDate(value));
} catch (ParseException e) {
throw new MVELTranslationException(MVELTranslationException.INCOMPATIBLE_DATE_VALUE, "Unable to convert " +
"the persisted date value(" + value + ") to the admin display format.");
}
}
int entityKeyIndex = field.indexOf(".");
if (entityKeyIndex < 0) {
throw new MVELTranslationException(MVELTranslationException.NO_FIELD_FOUND_IN_RULE, "Could not identify a " +
"valid property field value in the expression: ("+phrase+")");
}
if (value.startsWith(caseInsensitivityKey)) {
value = value.substring(caseInsensitivityKey.length(), value.length()-1);
}