@Override
protected File renameProduct(File product, Metadata productMetadata)
throws Exception {
if (getNamingConventionId() != null) {
NamingConvention namingConvention = (NamingConvention)
getApplicationContext().getBean(getNamingConventionId());
if (namingConvention == null) {
throw new Exception("NamingConvention Id '" + getNamingConventionId()
+ "' is not defined");
}
return namingConvention.rename(product, productMetadata);
} else {
return product;
}
}