code: @SuppressWarnings("unchecked")
      protected <T> List<T>  getSOAPResponseObject(SOAPMessageContext context, Class<T> clazz) {
          // return result
  
          Object responseObject = getSOAPResponseObject(context);
          ArrayList<T> resultList = new ArrayList<T>();
          for (Method m:responseObject.getClass().getDeclaredMethods()){
              if (m.getReturnType() == clazz) {
                  try {
                      resultList.add((T)m.invoke(responseObject));
                  } catch (Exception e) {
                      logger.error(e.toString(),e);
                      throw CXFUtility.getFault(e);
                  }
              }
          }
  
          return resultList;
      }
docs: Extracts the return object from the context.
  @param <T>
  @param <T>
  
  @param context
  the message context.
  @return the return object for the message.
  @throws SoapFault