code: public boolean isInsideCurrentProject(CmsDbContext dbc, String resourcename) {
  
          List<String> projectResources = null;
          try {
              projectResources = readProjectResources(dbc, dbc.currentProject());
          } catch (CmsException e) {
              if (LOG.isErrorEnabled()) {
                  LOG.error(
                      Messages.get().getBundle().key(
                          Messages.LOG_CHECK_RESOURCE_INSIDE_CURRENT_PROJECT_2,
                          resourcename,
                          dbc.currentProject().getName()),
                      e);
              }
              return false;
          }
          return CmsProject.isInsideProject(projectResources, resourcename);
      }
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 dbc the current database context
  @param resourcename the specified resource name (full path)
  
  @return <code>true</code>, if the specified resource is inside the current project