Source:
<code><START> public <T> Collection<T> loadAll(Class<T> type, Filters filters, SortOrder sortOrder, Pagination pagination, <END> int depth) { String entityLabel = session.entityType(type.getName()); if (entityLabel == null) { LOG.warn("Unable to find database label for entity " + type.getName() + " : no results will be returned. Make sure the class is registered, " + "and not abstract without @NodeEntity annotation"); return Collections.emptyList(); } QueryStatements queryStatements = session.queryStatementsFor(type, depth); SortOrder sortOrderWithResolvedProperties = sortOrderWithResolvedProperties(type, sortOrder); PagingAndSortingQuery query; if (filters.isEmpty()) { query = queryStatements.findByType(entityLabel, depth); } else { resolvePropertyAnnotations(type, filters); query = queryStatements.findByType(entityLabel, filters, depth); } query.setSortOrder(sortOrderWithResolvedProperties) .setPagination(pagination); return session.doInTransaction( () -> { if (query.needsRowResult()) { DefaultGraphRowListModelRequest graphRowListModelRequest = new DefaultGraphRowListModelRequest( query.getStatement(), query.getParameters()); try (Response<GraphRowListModel> response = session.requestHandler().execute(graphRowListModelRequest)) { return (Collection<T>) new GraphRowListModelMapper(session.metaData(), session.context(), session.getEntityInstantiator()) .map(type, response); } } else { GraphModelRequest request = new DefaultGraphModelRequest(query.getStatement(), query.getParameters()); try (Response<GraphModel> response = session.requestHandler().execute(request)) { return (Collection<T>) new GraphEntityMapper(session.metaData(), session.context() , session.getEntityInstantiator()).map(type, response); } } }, Transaction.Type.READ_WRITE); }</code><technical_language>get a java doc describe new behaviour</technical_language>

Target:
public <T> Collection<T> loadAll(Class<T> type, Filters filters, SortOrder sortOrder, Pagination pagination, int depth) { String entityLabel = session.entityType(type.getName()); if (entityLabel == null) { LOG.warn("Unable to find database label for entity " + type.getName() + " : no results will be returned. Make sure the class is registered, " + "and not abstract without @NodeEntity annotation"); return Collections.emptyList(); } QueryStatements queryStatements = session.queryStatementsFor(type, depth); SortOrder sortOrderWithResolvedProperties = sortOrderWithResolvedProperties(type, sortOrder); PagingAndSortingQuery query; if (filters == null || filters.isEmpty()) { query = queryStatements.findByType(entityLabel, depth); } else { resolvePropertyAnnotations(type, filters); query = queryStatements.findByType(entityLabel, filters, depth); } query.setSortOrder(sortOrderWithResolvedProperties) .setPagination(pagination); return session.doInTransaction( () -> { if (query.needsRowResult()) { DefaultGraphRowListModelRequest graphRowListModelRequest = new DefaultGraphRowListModelRequest( query.getStatement(), query.getParameters()); try (Response<GraphRowListModel> response = session.requestHandler().execute(graphRowListModelRequest)) { return (Collection<T>) new GraphRowListModelMapper(session.metaData(), session.context(), session.getEntityInstantiator()) .map(type, response); } } else { GraphModelRequest request = new DefaultGraphModelRequest(query.getStatement(), query.getParameters()); try (Response<GraphModel> response = session.requestHandler().execute(request)) { return (Collection<T>) new GraphEntityMapper(session.metaData(), session.context() , session.getEntityInstantiator()).map(type, response); } } }, Transaction.Type.READ_WRITE); }