List<VirtualFile> getChildren() throws IOException {
      List<?> objects = invoke(getChildrenRecursively, virtualFile);
      List<VirtualFile> children = new ArrayList<VirtualFile>(objects.size());
      for (Object object : objects) {
        children.add(new VirtualFile(object));
      }
      return children;
    }
A class that mimics a tiny subset of the JBoss VirtualFile class.
src/main/java/org/apache/ibatis/io/JBoss6VFS.java