I suggest fixing this the same way as HHH 8911. Change the cast to ComponentType to the cast to CompositeType at EntityLoadQueryDetails.java:267. Can you fix that for 5 as well as for 4.3, please! Thanks.