ConsumerInfo consumerInfo = null;
try
{
GetConsumerInfoRequest request = new GetConsumerInfoRequest(securityToken, serviceName, provider);
ServiceActionContext currentContext = new ServiceActionContext(request, null);
ConsumerInfoResponse response = (ConsumerInfoResponse) actionController.execute(currentContext,
getConsumerInfoAction);
consumerInfo = response.getConsumerInfo();
}
catch (Exception ex)
{
logger.error("Error occurred getting consumer info.", ex);
throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR, ex.getMessage());