docs: protected void prepareTypeCondition(
          CmsUUID projectId,
          int type,
          int mode,
          StringBuffer conditions,
          List<Object> params) {
  
          if (type != CmsDriverManager.READ_IGNORE_TYPE) {
              if ((mode & CmsDriverManager.READMODE_EXCLUDE_TYPE) > 0) {
                  // C_READ_FILE_TYPES: add condition to match against any type, but not given type
                  conditions.append(BEGIN_EXCLUDE_CONDITION);
                  conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_RESOURCE_TYPE"));
                  conditions.append(END_CONDITION);
                  params.add(new Integer(type));
              } else {
                  //otherwise add condition to match against given type if necessary
                  conditions.append(BEGIN_INCLUDE_CONDITION);
                  conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_RESOURCE_TYPE"));
                  conditions.append(END_CONDITION);
                  params.add(new Integer(type));
              }
          }
      }