def METHOD_NAME(self):
    libraries = ["libnetcdf_c++4"]
    query_parameters = self.spec.last_query.extra_parameters
    if "shared" in query_parameters:
        shared = True
    elif "static" in query_parameters:
        shared = False
    else:
        shared = "+shared" in self.spec
    METHOD_NAME = find_libraries(libraries, root=self.prefix, shared=shared, recursive=True)
    if METHOD_NAME:
        return METHOD_NAME
    msg = "Unable to recursively locate {0} {1} libraries in {2}"
    raise spack.error.NoLibrariesError(
        msg.format("shared" if shared else "static", self.spec.name, self.spec.prefix)
    )