public static void stopRecording(String roomId) { log.debug("entered stopRecording for room " + roomId); try { if (roomId != null && roomFileMap.get(roomId) != null) { WhiteboardVideoVO obj = (WhiteboardVideoVO) roomFileMap.get(roomId); // DataOutputStream os = obj.getOs(); // os.close(); boolean val = VideoDataDAO.updateVideoData(obj.getId()); if (val == false) log.error(" could not update database for update "); roomFileMap.remove(roomId); } } catch (Exception e) { log.error(e.getMessage(), e); e.printStackTrace(); } }