/** * Method to handle get/set Parameter supplied for native query. */ private void onNativeCondition() { ApplicationMetadata appMetadata = kunderaMetadata.getApplicationMetadata(); if (appMetadata.isNative(getJPAQuery())) { throw new IllegalStateException( "invoked on a native query when the implementation does not support this use"); } }