public ProjectLibraryBinaryLocator(ProjectLocator projectLocator) {
this.projectLocator = projectLocator;
}
public DomainObjectSet<NativeBinary> getBinaries(NativeLibraryRequirement requirement) {
Project project = findProject(requirement);
<BUG>LibraryContainer libraryContainer = (LibraryContainer) project.getExtensions().findByName("libraries");
if (libraryContainer == null) {
throw new LibraryResolveException(String.format("Project does not have a libraries container: '%s'", project.getPath()));</BUG>
}
<BUG>return libraryContainer.withType(NativeLibrary.class).getByName(requirement.getLibraryName()).getBinaries();
</BUG>
}

public ProjectLibraryBinaryLocator(ProjectLocator projectLocator) {
this.projectLocator = projectLocator;
}
public DomainObjectSet<NativeBinary> getBinaries(NativeLibraryRequirement requirement) {
Project project = findProject(requirement);
SoftwareComponentContainer softwareComponentContainer = project.getExtensions().findByType(SoftwareComponentContainer.class);
if (softwareComponentContainer == null) {
throw new LibraryResolveException(String.format("Project does not have a libraries container: '%s'", project.getPath()));
}
return softwareComponentContainer.withType(NativeLibrary.class).getByName(requirement.getLibraryName()).getBinaries();
}
