The current design (especially modifiers) of JPAAbstractExpandQuery doesn`t fully support extension since the Class by itself is public, but the important methods that are used within an extention and other dependent classes have package private access.
PR Link to changes that might help to resolve: #371