LoadOptions opt=new LoadOptions();
opt.setFileName(fileName);
opt.setLocal(true);
opt.setSync(false);
if (merge) opt.setResourceMapping(new ResourceMappingForm(){
public boolean execute(){
if (getImportedResources().size() == 0) // don't show dialog if no resources were imported
return true;
if (resourceMappingDialog == null) {
resourceMappingDialog = ResourceMappingDialog.getInstance(this);