handleApplicationError(e);
} catch (InvalidProtocolBufferException e) {
throw new AppIdentityServiceFailureException(e.getMessage());
}
SignForAppResponse response = responseBuilder.build();
return new SigningResult(response.getKeyName(), response.getSignatureBytes().toByteArray());
}