@Override
  public void initialize(final ModuleInitializeCallback initializedCallback) {
    Dtos.SessionDto dto = DtoFactory.sessionDto(CurrentUser.getInstance().getSessionId());
    dto.setCommandName(CommandNames.GET_ALL_USERS_COMMAND.name);
    ServerCaller.<Dtos.SessionDto, Dtos.UsersDto>sendRequest(
        dto,
        Dtos.UsersDto.class,
        new ServerCallCallback<Dtos.UsersDto>() {
          @Override
          public void success(Dtos.UsersDto response) {
            List<Dtos.UserDto> users = response.getValues();
            usersList.setContent(users);

            Dtos.UserDto currentUser = CurrentUser.getInstance().getUser();
            if (currentUser == null) {
              initializedCallback.initialized(SecurityModule.this);
            } else {
              for (Dtos.UserDto user : users) {
                if (user.getUserName().equals(currentUser.getUserName())) {
                  usersList.setSelectedDto(currentUser);
                  break;
                }
              }
              initializedCallback.initialized(SecurityModule.this);
            }
          }
        });

    setVisible(true);
  }
 public ClassOfServiceDto getDefaultClassOfService() {
   ClassOfServiceDto defaultClassOfService = DtoFactory.classOfServiceDto();
   defaultClassOfService.setColour("92c1f0");
   defaultClassOfService.setName("Default Class Of Service");
   defaultClassOfService.setId(null);
   defaultClassOfService.setSessionId(CurrentUser.getInstance().getSessionId());
   defaultClassOfService.setVersion(0);
   return defaultClassOfService;
 }