/** * Returns productURL property. * * @param pProductID parameter to set. * @param pRepository parameter to set. * @return productURL property. * @throws RepositoryException - exception * @throws UnsupportedEncodingException - exception */ public static String getProductURL(String pProductID, Repository pRepository) throws RepositoryException, UnsupportedEncodingException { RepositoryItem product = pRepository.getItem(pProductID, "product"); if (product != null) { return SEOUtils.getProductURL(product); } else { return null; } }