geoResourceLock.lock();
gettingResources.set(true);
try {
final ID id = getResourceID();
if (id == null) {
return NULL;
}
if (geoResources != null && geoResources != NULL)
return geoResources;
if (!catalogRef.isLoaded()) {
catalogRef.load();
}
final List<IGeoResource> resourceList = new ArrayList<IGeoResource>();
final ICatalog connections = CatalogPlugin.getDefault().getLocalCatalog();
try {
IProgressMonitor monitor = new NullProgressMonitor();
IRunnableWithProgress object = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException {
try {
List<IResolve> resources = connections.find(id.toURL(), monitor);
for (IResolve resolve : resources) {
if (resolve.getStatus() == Status.BROKEN
|| resolve.getStatus() == Status.BROKEN)
continue;
if (resolve instanceof IGeoResource) {