[hibernate-dev] Making APIs more Lambda-friendly