code: private CreateRoomSettings createRoomSettings(ApiRoom agent) {
          validateRoomAgentClass(agent);
  	    CreateRoomSettings settings = new CreateRoomSettings();
          settings.setName(agent.getName());
          settings.setPassword(agent.getPassword());
          settings.setDynamic(agent.isDynamic());
          settings.setGame(agent.isGame());
          settings.setHidden(agent.isHidden());
          settings.setMaxSpectators(agent.getMaxSpectators());
          settings.setMaxUsers(agent.getMaxUsers());
          settings.setMaxVariablesAllowed(agent.getMaxRoomVariablesAllowed());
          settings.setRoomProperties(agent.getProperties());
          settings.setGroupId(agent.getGroupdId());
          settings.setUseWordsFilter(agent.isUseWordsFilter());
          settings.setAutoRemoveMode(SFSRoomRemoveMode.fromString(agent.getRemoveMode().name()));
          if(agent.getExtension() != null) 
              settings.setExtension(new RoomExtensionSettings(agent.getExtension().getName(), agent.getExtension().getClazz()));
          return settings;
  	}
docs: Create smartfox CreateRoomSettings object
  
  @param agent room agent object
  @return CreateRoomSettings object