public static void displayNameError(final byte errorCode) {
   String errorString = null;
   switch (errorCode) {
     case 10:
       {
         errorString = "error.characterCreation.existingName";
         break;
       }
     case 11:
       {
         errorString = "error.characterCreation.invalidName";
         break;
       }
     case 12:
       {
         errorString = "error.characterCreation.tooManyCharacters";
         break;
       }
     default:
       {
         errorString = "error.characterCreation";
         break;
       }
   }
   Xulor.getInstance()
       .msgBox(
           WakfuTranslator.getInstance().getString(errorString),
           WakfuMessageBoxConstants.getMessageBoxIconUrl(1),
           1027L,
           8,
           1);
 }
 @Override
 public void onCloseEvent() {
   if (SWFWrapper.INSTANCE.isOpened()) {
     SWFWrapper.INSTANCE.unload();
     return;
   }
   final MessageBoxControler messageBoxControler =
       Xulor.getInstance()
           .msgBox(
               WakfuTranslator.getInstance().getString("question.quit"),
               WakfuMessageBoxConstants.getMessageBoxIconUrl(0),
               2073L,
               102,
               1);
   messageBoxControler.addEventListener(
       new MessageBoxEventListener() {
         @Override
         public void messageBoxClosed(final int type, final String userEntry) {
           if (type == 8) {
             WakfuApplicationUI.this.onCloseEvent();
           }
         }
       });
 }