Bug 319902 Internal API Usage of the ODA framework components
data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.ui/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/ui/internal/sqb/SQBDataSetWizardPage.java
{
	    if( m_dataSourceProfile == null )
	    {
            if( refreshProfileStore )
                OdaProfileExplorer.getInstance().refresh();
 
            java.util.Properties connProps = DesignUtil.convertDataSourceProperties( 
                                getEditingDesign().getDataSourceDesign() );           
            m_dataSourceProfile = loadConnectionProfile( connProps );
            
            if( m_dataSourceProfile == null && raiseErrorIfNull )
                MessageDialog.openError( getShell(), Messages.sqbWizPage_dataSourceDesignError, 
                        Messages.sqbWizPage_noConnProfileMsg );
	    }
	    return m_dataSourceProfile;
	}
    
	private static IConnectionProfile loadConnectionProfile( java.util.Properties connProps )
	{
	    try
        {
            return Connection.loadProfileFromProperties( connProps );
        }
        catch( OdaException ex )
        {
            
            return null;
        }
	}