 dynamic query add restrictions factory util entry id 
