protected static SessionController create ( String sessionId , boolean originator ) { Map < String , Object > args = new HashMap <> ( ) ; args . put ( "id" , sessionId ) ; args . put ( "title" , StrUtil . formatMessage ( "@cwf.chat.session.title" ) ) ; args . put ( "originator" , originator ? true : null ) ; Window dlg = PopupDialog . show ( DIALOG , args , true , true , false , null ) ; return ( SessionController ) FrameworkController . getController ( dlg ) ; }
Creates a chat session bound to the specified session id .