// instead of creating our own.
if ( queryAction.getMdxConnection() != ActionInputConstant.NULL_INPUT ) {
if ( queryAction.getMdxConnection().getValue() != null ) {
connectionOwner = false;
IPreparedComponent component = (IPreparedComponent) queryAction.getMdxConnection().getValue();
IPentahoConnection conn = component.shareConnection();
if ( conn.getDatasourceType() == IPentahoConnection.MDX_DATASOURCE ) {
connection = conn;
} else {
error( Messages.getInstance().getErrorString(
"IPreparedComponent.ERROR_0001_INVALID_CONNECTION_TYPE", getActionName() ) ); //$NON-NLS-1$