private ArchivaArtifact getArtifact( final String principal, final List<String> observableRepositoryIds,
final String groupId, final String artifactId, final String version )
throws ObjectNotFoundException, ArchivaDatabaseException
{
ArchivaArtifact pomArtifact = null;
Constraint constraint = new ArtifactsRelatedConstraint( groupId, artifactId, version );
try
{
List<ArchivaArtifact> artifacts = dao.getArtifactDAO().queryArtifacts( constraint );