code: public void setStreamLayouts(String sessionId, StreamListProperties properties) throws OpenTokException {
          if (StringUtils.isEmpty(sessionId) || properties == null) {
              throw new InvalidArgumentException("SessionId is not valid or properties are null");
          }
          this.client.setStreamLayouts(sessionId, properties);
      }
docs: Sets the layout class list for streams in a session. Layout classes are used in
  the layout for composed archives and live streaming broadcasts. For more information, see
  <a href="https://tokbox.com/developer/guides/archiving/layout-control.html">Customizing
  the video layout for composed archives</a> and
  <a href="https://tokbox.com/developer/guides/broadcast/live-streaming/#configuring-video-layout-for-opentok-live-streaming-broadcasts">Configuring
  video layout for OpenTok live streaming broadcasts</a>.
  
  <p>
  You can set the initial layout class list for streams published by a client when you generate
  used by the client. See the {@link #generateToken(String, TokenOptions)} method.
  
  @param sessionId {String} The session ID of the session the streams belong to.
  
  @param properties This StreamListProperties object defines class lists for one or more
  streams in the session.