if(persist) getDbTrans().startTrans();
final Interface intf = stub(InterfaceSwitch.class, false);
final InterfaceOption io = stub(InterfaceOption.class, false);
final InterfaceOptionParameterDefinition iopd = stub(InterfaceOptionParameterDefinition.class, false);
io.addParameter(iopd);
intf.addOption(io);
if(persist) {
getDbTrans().setComplete();
getDao().persist(intf);
getDbTrans().endTrans();
}