code: private String getCodeWordA(BitSet switchGroupAddress, int switchCode, boolean status) {
          int nReturnPos = 0;
          char[] sReturn = new char[12];
  
          String[] code = new String[]{"FFFFF", "0FFFF", "F0FFF", "FF0FF", "FFF0F", "FFFF0"};
  
          if (switchCode < 1 || switchCode > 5) {
              throw new IllegalArgumentException("switch code has to be between "
                      + "1 (outlet A) and 5 (outlet E)");
          }
  
          for (int i = 0; i < 5; i++) {
              if (!switchGroupAddress.get(i)) {
                  sReturn[nReturnPos++] = 'F';
              } else {
                  sReturn[nReturnPos++] = '0';
              }
          }
  
          for (int i = 0; i < 5; i++) {
              sReturn[nReturnPos++] = code[switchCode].charAt(i);
          }
  
          if (status) {
              sReturn[nReturnPos++] = '0';
              sReturn[nReturnPos++] = 'F';
          } else {
              sReturn[nReturnPos++] = 'F';
              sReturn[nReturnPos++] = '0';
          }
  
          return new String(sReturn);
      }
docs: Like getCodeWord (Type A)