code: public CmsOrganizationalUnit createOrganizationalUnit(
          CmsObject cms,
          String ouFqn,
          String description,
          int flags,
          String resourceName) throws CmsException {
  
          CmsResource resource = null;
          if (((flags & CmsOrganizationalUnit.FLAG_WEBUSERS) == 0) || (resourceName != null)) {
              // only normal OUs have to have at least one resource
              resource = cms.readResource(resourceName);
          }
          return m_securityManager.createOrganizationalUnit(cms.getRequestContext(), ouFqn, description, flags, resource);
      }
docs: Creates a new organizational unit.<p>
  
  The parent structure must exist.<p>
  
  @param cms the opencms context
  @param ouFqn the fully qualified name of the new organizational unit
  @param description the description of the new organizational unit
  @param flags the flags for the new organizational unit
  @param resourceName the first associated resource
  
  @return a <code>{@link CmsOrganizationalUnit}</code> object representing
  the newly created organizational unit
  
  @throws CmsException if operation was not successful