* @param obrBaseUrl the base URL of the OBR, cannot be <code>null</code>.
* @return a list of used OBR entries, never <code>null</code>.
* @throws IOException in case an artifact repository is not present.
*/
private List<OBREntry> getUsedOBRArtifacts(URL obrBaseUrl) throws IOException {
ArtifactRepository artifactRepository = getArtifactRepository();
if (artifactRepository == null) {
throw new IOException("No artifact repository present!");
}
final String baseURL = obrBaseUrl.toExternalForm();
List<OBREntry> fromRepository = new ArrayList<OBREntry>();
List<ArtifactObject> artifactObjects = artifactRepository.get();
artifactObjects.addAll(artifactRepository.getResourceProcessors());
for (ArtifactObject ao : artifactObjects) {
String artifactURL = ao.getURL();
if (artifactURL != null && artifactURL.startsWith(baseURL)) {
// we now know this artifact comes from the OBR we are querying,