code: public boolean actionInternalUse(HttpServletRequest request) {
  
          String internal = request.getParameter(PARAM_INTERNAL);
  
          CmsResource resource;
          boolean internalValue = false;
          if (internal != null) {
              internalValue = true;
          }
          try {
              resource = getCms().readResource(getParamResource(), CmsResourceFilter.ALL);
  
              int flags = resource.getFlags();
  
              if (internalValue) {
                  flags |= CmsResource.FLAG_INTERNAL;
              } else {
                  flags &= ~CmsResource.FLAG_INTERNAL;
              }
  
              getCms().lockResource(getParamResource());
              getCms().chflags(getParamResource(), flags);
  
          } catch (CmsException e) {
              m_errorMessages.add(key(Messages.ERR_MODIFY_INTERNAL_FLAG_0));
              if (LOG.isErrorEnabled()) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
              return false;
          }
          return true;
      }
docs: Modifies the Internal Use flag of a resource.<p>
  @param request the Http servlet request
  
  @return true if the operation was was successfully removed, otherwise false