private void createRoom(int index) {
        ApiRoom agent = agents[index];
        try {
            CreateRoomSettings settings = createRoomSettings(agent);
            User owner = CommandUtil.getSfsUser(agent.getOwner(), api);
            Room room = api.createRoom(extension.getParentZone(), settings, owner);
            room.setProperty(APIKey.ROOM, agent);
            agent.setId(room.getId());
            agent.setPasswordProtected(room.isPasswordProtected());
            agent.setCommand(context.command(RoomInfo.class).room(room.getId()));
        }
        catch (SFSCreateRoomException e) {
            throw new IllegalStateException("Can not create room " + agent.getName(), e);
        }
    }
private void createRoom ( int index ) { ApiRoom agent = agents [ index ] ; try { CreateRoomSettings settings = createRoomSettings ( agent ) ; User owner = CommandUtil . getSfsUser ( agent . getOwner ( ) , api ) ; Room room = api . createRoom ( extension . getParentZone ( ) , settings , owner ) ; room . setProperty ( APIKey . ROOM , agent ) ; agent . setId ( room . getId ( ) ) ; agent . setPasswordProtected ( room . isPasswordProtected ( ) ) ; agent . setCommand ( context . command ( RoomInfo . class ) . room ( room . getId ( ) ) ) ; } catch ( SFSCreateRoomException e ) { throw new IllegalStateException ( "Can not create room " + agent . getName ( ) , e ) ; } }
Create a room at index

@param index index