code: public void addResourceToOrgUnit(CmsObject cms, String ouFqn, String resourceName) throws CmsException {
  
          CmsOrganizationalUnit orgUnit = readOrganizationalUnit(cms, ouFqn);
          CmsResource resource = cms.readResource(resourceName);
          m_securityManager.addResourceToOrgUnit(cms.getRequestContext(), orgUnit, resource);
      }
docs: Adds a resource to the given organizational unit.<p>
  
  @param cms the opencms context
  @param ouFqn the full qualified name of the organizational unit to add the resource to
  @param resourceName the name of the resource that is to be added to the organizational unit
  
  @throws CmsException if something goes wrong