code: private static String[] decodeParams(HttpPostCommand command, int paramCount) throws UnsupportedEncodingException {
          final byte[] data = command.getData();
          final String[] encoded = bytesToString(data).split("&");
          final String[] decoded = new String[encoded.length];
          for (int i = 0; i < paramCount; i++) {
              decoded[i] = URLDecoder.decode(encoded[i], "UTF-8");
          }
          return decoded;
      }
docs: Decodes HTTP post params contained in {@link HttpPostCommand#getData()}. The data
  should be encoded in UTF-8 and joined together with an ampersand (&).
  
  @param command    the HTTP post command
  @param paramCount the number of parameters expected in the command
  @return the decoded params
  @throws UnsupportedEncodingException If character encoding needs to be consulted, but
  named character encoding is not supported