code: protected PropertiesRecordingId setFinalRecordingNameAndGetFreeRecordingId(Session session,
  			RecordingProperties properties) {
  		String recordingId = this.recordingManager.getFreeRecordingId(session.getSessionId(),
  				this.getShortSessionId(session));
  		if (properties.name() == null || properties.name().isEmpty()) {
  			// No name provided for the recording file. Use recordingId
  			RecordingProperties.Builder builder = new RecordingProperties.Builder().name(recordingId)
  					.outputMode(properties.outputMode()).hasAudio(properties.hasAudio())
  					.hasVideo(properties.hasVideo());
  			if (io.openvidu.java.client.Recording.OutputMode.COMPOSED.equals(properties.outputMode())
  					&& properties.hasVideo()) {
  				builder.resolution(properties.resolution());
  				builder.recordingLayout(properties.recordingLayout());
  				if (RecordingLayout.CUSTOM.equals(properties.recordingLayout())) {
  					builder.customLayout(properties.customLayout());
  				}
  			}
  			properties = builder.build();
  		}
  
  		log.info("New recording id ({}) and final name ({})", recordingId, properties.name());
  		return new PropertiesRecordingId(properties, recordingId);
  	}
docs: Returns a new available recording identifier (adding a number tag at the end
  of the sessionId if it already exists) and rebuilds RecordinProperties object
  to set the final value of "name" property