hi @ahgittin @nacx @demobox thanks for your valuable feedbacks!

Here is my proposal, following your advices:

```java
try {
   order = client.getVirtualGuestClient().getOrderTemplate(guest.getId());
} catch (HttpResponseException e) {
   // this is a workaround because SoftLayer throws somethimes 500 internal 
server errors for the above method call
   String message = "{\"error\":\"Your order has a duplicate price for category 
\\\"Hardware & Software   
Firewalls\\\".\",\"code\":\"SoftLayer_Exception_Order_Item_Duplicate\"}";
   if(e.getContent().equals(message)) {
      logger.warn("Cannot get order template for virtualGuest id(" + 
guest.getId() + "), because of " + message, e);
      return null;
   }
}
```

wdyt?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/199#issuecomment-28275440

Reply via email to