void checkTwowayOnly(String operation, bool sync) { if (!ice_isTwoway() && sync) { throw TwowayOnlyException(); } }