ClientFactory clientFactory,
EventBus eventBus,
boolean historicalReadOnly,
Command refreshCommand) {
if ( packageConfigData.getFormat().equals( "package" ) ) {
return new PackageEditor(
packageConfigData,
clientFactory,
eventBus,
historicalReadOnly,
refreshCommand );
} else if ( packageConfigData.getFormat().equals( "soaservice" ) ) {
return new SOAServiceEditor(
packageConfigData,
clientFactory,
eventBus,
historicalReadOnly,
refreshCommand );
} else {
//default:
return new PackageEditor(
packageConfigData,
clientFactory,
eventBus,
historicalReadOnly,
refreshCommand );