for (WGContent content : contents) {
String title = content.getTitle();
if (titleExpr != null) {
TMLContext conContext = context.context(content);
ExpressionResult result = runtime.evaluateExpression(titleExpr, conContext, ExpressionEngine.TYPE_EXPRESSION, null);
if (!result.isError()) {
title = String.valueOf(result.getResult());
}
}
options.add(title + "|" + content.getStructKey());