code: private CmsResource readResource(String resourceName) throws CmsException {
  
          CmsResource resource = null;
          try {
              resource = getCms().readResource(resourceName, CmsResourceFilter.ALL);
          } catch (CmsVfsResourceNotFoundException e) {
              throw new CmsVfsResourceNotFoundException(
                  Messages.get().container(
                      Messages.ERR_RESOURCE_DOES_NOT_EXIST_3,
                      resourceName,
                      getCms().getRequestContext().getCurrentProject().getName(),
                      getCms().getRequestContext().getSiteRoot()),
                  e);
          }
          return resource;
      }
docs: Reads the resource from the DB.<p>
  
  @param resourceName the resource name
  
  @return the resource
  
  @throws CmsException if the resource can not be read