try {
Object _service = TargetPlatformProposalProvider.this.provisioningAgent.getService(IMetadataRepositoryManager.SERVICE_NAME);
final IMetadataRepositoryManager repositoryManager = ((IMetadataRepositoryManager) _service);
URI _uRI = new URI(uri);
SubMonitor _newChild = wpm.newChild(90);
final IMetadataRepository metadataRepository = repositoryManager.loadRepository(_uRI, _newChild);
IQuery<IInstallableUnit> _iUAssistQuery = TargetPlatformProposalProvider.this.getIUAssistQuery();
SubMonitor _newChild_1 = wpm.newChild(5);
IQueryResult<IInstallableUnit> _query = metadataRepository.query(_iUAssistQuery, _newChild_1);
final Set<IInstallableUnit> results = _query.toUnmodifiableSet();
final Function1<IInstallableUnit, Boolean> _function = new Function1<IInstallableUnit, Boolean>() {