GeneralServiceImpl<ProductLink> implements ProductLinkRemoteService {
private static final long serialVersionUID=28223743577747311L;
private ProductLink buildProductLink(Map<String, Object> map, LinkType linkType) {
ProductLink link = new ProductLink();
link.setLinkType(linkType);
for (Map.Entry<String, Object> att : map.entrySet())
link.set(att.getKey(), att.getValue());
if (map.get("type") != null)
link.setProductType(ProductTypeEnum.getTypeOf((String) map.get("type")));
return link;
}