project = pb.buildFromRepository(artifact, remoteRepos,
project = projectBuilder.buildFromRepository(artifact, remoteRepos,
	private MavenProject getComponentProject() {		Set artifacts = project.getArtifacts();		for (Iterator iter = artifacts.iterator(); iter.hasNext();) {			Artifact artifact = (Artifact) iter.next();			// TODO: utilise appropriate methods from project builder			ScopeArtifactFilter filter = new ScopeArtifactFilter(					Artifact.SCOPE_RUNTIME);			if (!artifact.isOptional() && filter.include(artifact)					&& (artifact.getDependencyTrail().size() == 2)) {				MavenProject project = null;				try {					project = pb.buildFromRepository(artifact, remoteRepos,							localRepo);				} catch (ProjectBuildingException e) {					getLog().warn(							"Unable to determine packaging for dependency : "									+ artifact.getArtifactId()									+ " assuming jar");				}				if ((project != null)						&& (project.getPackaging().equals("jbi-component"))) {					return project;				}			}		}		return null;	}