ISPN-4557 Fix the AS-Embedded modules's capability to run Query

 - https://issues.jboss.org/browse/ISPN-4557