code: protected void load(boolean needContent) throws IOException, CmsException {
  
          try {
              if (m_resource.isFolder() && needContent) {
                  throw new AccessDeniedException("Operation not supported for directories!");
              }
              if (m_resource.isFile() && needContent && (!(m_resource instanceof CmsFile))) {
                  m_resource = m_cms.readFile(m_cms.getSitePath(m_resource), CmsJlanDiskInterface.STANDARD_FILTER);
              }
              if (!m_bufferInitialized && (getFile() != null)) {
                  // readResource may already have returned a CmsFile, this is why we need to initialize the buffer
                  // here and not in the if-block above
                  m_buffer.init(getFile().getContents());
                  m_bufferInitialized = true;
              }
          } catch (CmsException e) {
              throw e;
          }
      }
docs: Loads the file data from the VFS.<p>
  
  @param needContent true if we need the file content to be loaded
  
  @throws IOException if an IO error happens
  @throws CmsException if a CMS operation fails