code: public boolean isInsideCurrentProject(CmsRequestContext context, String resourcename) {
  
          boolean result = false;
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              result = m_driverManager.isInsideCurrentProject(dbc, resourcename);
          } finally {
              dbc.clear();
          }
          return result;
      }
docs: Checks if the specified resource is inside the current project.<p>
  
  The project "view" is determined by a set of path prefixes.
  If the resource starts with any one of this prefixes, it is considered to
  be "inside" the project.<p>
  
  @param context the current request context
  @param resourcename the specified resource name (full path)
  
  @return <code>true</code>, if the specified resource is inside the current project