Product product = client.getProductById(productId);
product.setProductReferences(client.getProductReferences(product));
// Create the product resource, add the product data and return the
// resource as the HTTP response.
return new ProductResource(product, client.getMetadata(product),
product.getProductReferences(), getContextWorkingDir());
}
catch (Exception e)
{
String message = "Unable to find the requested resource.";