buildStateObject

Creates a StateObject representation of the given JPQL fragment. In order to properly
parse the fragment, the given unique identifier of the parser.JPQLQueryBNF JPQLQueryBNF will determine how to parse it.

It is possible the given JPQL fragment has more than one expression, in this case, parsing
should stop at the first comma (x, y) or space (x y) where x and y are two separate expressions.

Parameters:

parent - The StateObject that will be the parent of the newly created model

jpqlFragment - A portion of a JPQL query that will be parsed and the StateObject
representation will be created

queryBNFId - The unique identifier of the query BNF that will be used to parse the fragment