code: private static List<Object> toObjectList(List<ModelNode> nodeList) throws ProtocolException {
          if (nodeList.isEmpty()) {
              return Collections.emptyList();
          } else {
              ArrayList<Object> result = new ArrayList<>(nodeList.size());
              for (ModelNode node : nodeList) {
                  if (node.hasDefined(JBossASClient.RESULT)) {
                      result.add(toObject(node.get(JBossASClient.RESULT)));
                  } else {
                      throw new IllegalStateException("No 'result' in a nodeList item [" + node + "]");
                  }
              }
              return Collections.unmodifiableList(result);
          }
      }
docs: Returns a {@link List} of objects extracted from the given {@code nodeList}
  
  @param nodeList the source list to extract the result values from
  @return a {@link List} of objects extracted from the given {@code nodeList}
  @throws ProtocolException