code: private AbstractNode findFirstNodeByName(final SecurityContext securityContext, final HttpServletRequest request, final String path) throws FrameworkException {
  
  		final String name = PathHelper.getName(path);
  
  		if (!name.isEmpty()) {
  
  			logger.debug("Requested name: {}", name);
  
  			final Query query                  = StructrApp.getInstance(securityContext).nodeQuery();
  			final ConfigurationProvider config = StructrApp.getConfiguration();
  
  			if (!possiblePropertyNamesForEntityResolving.isEmpty()) {
  
  				query.and();
  				resolvePossiblePropertyNamesForObjectResolution(config, query, name);
  				query.parent();
  			}
  
  
  			final List<AbstractNode> results = Iterables.toList(query.getResultStream());
  
  			logger.debug("{} results", results.size());
  			request.setAttribute(POSSIBLE_ENTRY_POINTS_KEY, results);
  
  			return (results.size() > 0 ? (AbstractNode) results.get(0) : null);
  		}
  
  		return null;
  	}
docs: Find first node whose name matches the last part of the given path
  
  @param securityContext
  @param request
  @param path
  @return node
  @throws FrameworkException