* @param condition "when" condition
* @param result "then" result expression
* @return simple case expression
*/
public SimpleCase<C, R> when(C condition, Expression<? extends R> result){
org.eclipse.persistence.expressions.Expression conditionExp = org.eclipse.persistence.expressions.Expression.from(condition, new ExpressionBuilder());
((FunctionExpression)currentNode).addChild(conditionExp);
org.eclipse.persistence.expressions.Expression resultExp = ((InternalSelection)result).getCurrentNode();
resultExp = org.eclipse.persistence.expressions.Expression.from(resultExp, currentNode);
((FunctionExpression)currentNode).addChild(resultExp);
return this;