}
@Override
public Resource<?> getFinalArtifact()
{
MavenFacetImpl mvn = (MavenFacetImpl) getOrigin().getFacet(MavenFacet.class);
String directory = mvn.getPartialProjectBuildingResult().getProject().getBuild().getDirectory();
String finalName = mvn.getPartialProjectBuildingResult().getProject().getBuild().getFinalName();
if (Strings.isNullOrEmpty(directory))
{
throw new IllegalStateException("Project build directory is not configured");
}