}
}
@Override
public void process(@Nonnull Finding finding) {
PartialMapping query = ThreadFixInterface.toPartialMapping(finding);
PartialMapping endpoint = null;
if (database != null) {
endpoint = database.findBestMatch(query);
}
if (parameterParser != null && finding.getSurfaceLocation() != null) {
String parameter = parameterParser.parse(ThreadFixInterface.toEndpointQuery(finding));
finding.getSurfaceLocation().setParameter(parameter);
}
if (endpoint != null) {
finding.setCalculatedFilePath(endpoint.getStaticPath());
finding.setCalculatedUrlPath(endpoint.getDynamicPath());
} else {
noSourceProcessor.process(finding);
}
}