LIV-780: refactor "checkAndCreateRecordedEntry" function change "checkAndCreateRecordedEntry" to "shouldCreateRecordedEntryForAppend" split to "shouldCreateRecordedEntryForPerSession" and "shouldCreateRecordedEntryForAppend" add "convertToApiObject" and call it 5 times (avoid code duplication)
LIV-780: refactor "checkAndCreateRecordedEntry" function
change "checkAndCreateRecordedEntry" to "shouldCreateRecordedEntryForAppend"
split to "shouldCreateRecordedEntryForPerSession" and "shouldCreateRecordedEntryForAppend"
add "convertToApiObject" and call it 5 times (avoid code duplication)

kaltura/server,kaltura/server,kaltura/server,kaltura/server,kaltura/server,kaltura/server