public boolean apply(final Entry input) {
final String repoId = input.getData().get("repoId");
final String itemPath = input.getData().get("itemPath");
if (repoId != null && itemPath != null) {
try {
final MavenRepository repository = repositoryRegistry
.getRepositoryWithFacet(repoId, MavenRepository.class);
if (repository != null) {
final Gav gav = repository.getGavCalculator().pathToGav(itemPath);
if (gav != null && !gav.isSignature() && !gav.isHash()) {
// Hack: we mutate the entry, but putting in gav for reuse
if (!Strings.isNullOrEmpty(gav.getClassifier())) {
input.getData().put("itemGav", String
.format("%s:%s:%s:%s:%s", gav.getGroupId(), gav.getArtifactId(), gav.getVersion(),