private PmdDataFactory createDataFactory()
{
final PmdDataFactory returnDataFactory = new PmdDataFactory();
returnDataFactory.setXmiFile(filenameField.getText());
returnDataFactory.setDomainId(domainIdTextField.getText());
returnDataFactory.setConnectionProvider(new PmdConnectionProvider());
returnDataFactory.setGlobalScriptLanguage(getGlobalScriptingLanguage());
if (StringUtils.isEmpty(globalScriptTextArea.getText()) == false)
{
returnDataFactory.setGlobalScript(globalScriptTextArea.getText());
}