@Override
  public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception {
    ResourceNotFoundException e = (ResourceNotFoundException) super.unmarshall(error);
    e.setErrorCode("ResourceNotFoundException");

    e.setType(error.get("Type"));

    return e;
  }
 @Override
 public boolean match(JsonErrorResponse error) throws Exception {
   return error.getErrorCode().equals("KMSInvalidStateException");
 }
 @Override
 public boolean match(JsonErrorResponse error) throws Exception {
   return error.getErrorCode().equals("ResourceNotFoundException");
 }
 @Override
 public boolean match(JsonErrorResponse error) throws Exception {
   return error.getErrorCode().equals("InternalException");
 }