code: protected CmsResource createResourceObjectFromFields(String translatedName, int size) {
  
          m_resourceBuilder.setRootPath(translatedName);
          m_resourceBuilder.setState(CmsResource.STATE_NEW);
          m_resourceBuilder.setProjectLastModified(getRequestContext().getCurrentProject().getUuid());
          m_resourceBuilder.setLength(size);
          m_resourceBuilder.setSiblingCount(1);
          m_resourceBuilder.setVersion(0);
          m_resourceBuilder.setDateContent(System.currentTimeMillis());
          return m_resourceBuilder.buildResource();
      }
docs: Create a CmsResource object from the currently set field values.<p>
  
  @param translatedName the resource name
  @param size the size
  @return the new CmsResource object