monitor.beginTask("Fetching component metadata...", Utils.isNotEmpty(listMetadataQueries)
? listMetadataQueries.length + 1 : IProgressMonitor.UNKNOWN);
monitor.worked(1);
// perform list metadata request w/ queries
FileMetadataExt tmpFileMetadataExt =
ContainerDelegate.getInstance().getServiceLocator().getMetadataService().listMetadata(
getConnection(), listMetadataQueries, monitor);
// query describe metadata for organization namespace -
// don't get from ForceProject due to project might not be
// created yet.
MetadataStubExt metadataStubExt =
ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory()
.getMetadataStubExt(getConnection());
DescribeMetadataResultExt describeMetadataResultExt =
ContainerDelegate.getInstance().getServiceLocator().getMetadataService()
.getDescribeMetadata(metadataStubExt, new NullProgressMonitor());
String organizationNamespace = describeMetadataResultExt.getOrganizationNamespace();
// use client provided file properties or augment with fill list
// filter out packaged fileproperties from returned
// fileproperties (pme should not show packaged content)
FileProperties[] removedPackagedFileProps =
Utils.removePackagedFiles(tmpFileMetadataExt.getFileProperties(), organizationNamespace);
if (null == ext) {
ext = tmpFileMetadataExt;
ext.setFileProperties(removedPackagedFileProps);
} else if (ext.getFileProperties() == null) {