class AuthResourceInMemoryDao implements AuthResourceDao {

    @Override
    public List<AuthResource> readAll(String resourceType, String ownerId) {
        Map<String, AuthResource> resourceMap = inMemoryResourceMap.row(resourceType);
        if (Objects.nonNull(resourceMap)) {
            Collection<AuthResource> authResources = resourceMap.values();
            return authResources.stream()
                                .filter(authResource -> authResource.getOwner().equals(ownerId))
                                .collect(Collectors.toList());
        }
        return Collections.emptyList();
    }

}