question: @ SuppressWarnings ( "unchecked" ) public List < Product > read ( List < Long > ids ) { if ( ( ids == null ) || ids . isEmpty ( ) ) return ImmutableList . of ( ) ; String facet = "" ; String logic_op = "" ; for ( Long id : ids ) { facet += " " + logic_op + " p.id=" + id ; logic_op = "or" ; } return ( List < Product > ) find ( "from " + entityClass . getName ( ) + " p WHERE " + facet ) ; }
target:  Retrieve a list of products to their ids. returned list is not controlled with user rights nor processing completion.