Source:
<code>protected ResourceInfo getResourceInfo( ResourceRequest resourceRequest, String site, boolean isEnterprise, StringBuilder federatedSite, Map<String, Serializable> requestProperties, boolean fanoutEnabled) throws ResourceNotSupportedException, ResourceNotFoundException { ResourceInfo resourceInfo; Query query = null; URI resourceUri = null; String name = resourceRequest.getAttributeName(); Object value = resourceRequest.getAttributeValue(); if (value instanceof URI) { resourceUri = (URI) value; <START> } <END> try { query = createPropertyIsEqualToQuery( resourceRequest.getAttributeName(), resourceRequest.getAttributeValue().toString()); QueryRequest queryRequest = new QueryRequestImpl( anyTag(query, site, isEnterprise), isEnterprise, Collections.singletonList(site == null ? this.getId() : site), resourceRequest.getProperties()); resourceInfo = getResourceInfo( queryRequest, resourceUri, requestProperties, federatedSite, fanoutEnabled); } catch (UnsupportedQueryException | FederationException e) { throw new ResourceNotFoundException(DEFAULT_RESOURCE_NOT_FOUND_MESSAGE, e); } if (resourceInfo.getResourceUri() == null) { throw new ResourceNotFoundException(DEFAULT_RESOURCE_NOT_FOUND_MESSAGE); } LOGGER.debug("Returning resourceURI: {}", resourceInfo.getResourceUri()); return resourceInfo; }</code><technical_language>instance check threw a ResourceNotSupportedException resourceRequest.getAttributeValue() is a URI. added here? java final Object = resourceRequest.getAttributeValue(); if (value instanceof URI) { resourceUri = (URI) value; } else { throw new ResourceNotSupportedException( String.format( "The GetResourceRequest attribute name '%s' of class '%s' is supported this instance of CatalogFramework. Expected {}.", resourceRequest.getAttributeName(), value.getClass(), URI.class)); }</technical_language>

Target:
protected ResourceInfo getResourceInfo( ResourceRequest resourceRequest, String site, boolean isEnterprise, StringBuilder federatedSite, Map<String, Serializable> requestProperties, boolean fanoutEnabled) throws ResourceNotSupportedException, ResourceNotFoundException { ResourceInfo resourceInfo; Query query; String attributeName = resourceRequest.getAttributeName(); Object attributeValue = resourceRequest.getAttributeValue(); try { query = createPropertyIsEqualToQuery(attributeName, attributeValue.toString()); QueryRequest queryRequest = new QueryRequestImpl( anyTag(query, site, isEnterprise), isEnterprise, Collections.singletonList(site == null ? this.getId() : site), resourceRequest.getProperties()); QueryResponse queryResponse = queryOperations.query(queryRequest, null, true, fanoutEnabled); if (queryResponse.getResults().isEmpty()) { throw new ResourceNotFoundException( String.format( "Could not find a metacard with a %s of %s.", attributeName, attributeValue.toString())); } if (queryResponse.getResults().size() > 1) { throw new UnsupportedQueryException( String.format( "found multiple metacards with a %s of %s.", attributeName, attributeValue.toString())); } resourceInfo = getResourceInfo(queryResponse, attributeValue, requestProperties, federatedSite); } catch (UnsupportedQueryException | FederationException e) { throw new ResourceNotFoundException(DEFAULT_RESOURCE_NOT_FOUND_MESSAGE, e); } if (resourceInfo.getResourceUri() == null) { throw new ResourceNotFoundException(DEFAULT_RESOURCE_NOT_FOUND_MESSAGE); } LOGGER.debug("Returning resourceURI: {}", resourceInfo.getResourceUri()); return resourceInfo; }