Raise duplicate instance exception for AppDirect ErrorResponse

The AppDirect gateway has been modified to return JSON encoded
exceptions. This requires a change to the exception handling code
related to service instance creation.