if(useThisSource != null){
artifact.addAnnotation(SOURCE, useThisSource);
}else{
artifact.addAnnotation(SOURCE, DEV_AUDIT);
}
<BUG>Class<? extends ArtifactIdentity> artifactIdentityClass = artifactIdentity.getClass();

if(FileIdentity.class.equals(artifactIdentityClass)

|| NamedPipeIdentity.class.equals(artifactIdentityClass)

|| UnixSocketIdentity.class.equals(artifactIdentityClass)){
</BUG>
String path = artifact.getAnnotation("path");

if(useThisSource != null){
artifact.addAnnotation(SOURCE, useThisSource);
}else{
artifact.addAnnotation(SOURCE, DEV_AUDIT);
}
Class<? extends ArtifactIdentifier> artifactIdentifierClass = artifactIdentifier.getClass();
if(FileIdentifier.class.equals(artifactIdentifierClass)
|| NamedPipeIdentifier.class.equals(artifactIdentifierClass)
|| UnixSocketIdentifier.class.equals(artifactIdentifierClass)){
String path = artifact.getAnnotation("path");
