Adds the given {@link StateObject} as a select item.
@param stateObject The {@link StateObject} representing the select expression
@param resultVariable The result variable identifying the select expression
@return The newly created {@link ResultVariableStateObject}
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.