castType = ((UriResourceEntitySet) naviInfo.getUriResiource()).getTypeFilterOnEntry(); if (castType != null) target = (From<?, ?>) target.as(sd.getEntity(castType.getFullQualifiedName()).getTypeClass()); naviInfo.setFromClause(target); if (naviInfo.getUriInfo() != null && naviInfo.getUriInfo().getFilterOption() != null) {