final AbstractNamedMDXDataFactory factory = createDataFactory();
if (factory == null)
{
return null;
}
final KeyedComboBoxModel queries = getDialogModel().getQueries();
for (int i = 0; i < queries.getSize(); i++)
{
factory.setQuery((String) queries.getElementAt(i), (String) queries.getKeyAt(i));
}
factory.setJdbcUserField(getDialogModel().getJdbcUserField());
factory.setJdbcPasswordField(getDialogModel().getJdbcPasswordField());
factory.setRoleField(connectionComponent.getRoleField());
return factory;