class AAIUpdateTasks {

    public void updateServiceInstance(BuildingBlockExecution execution) {
        try {
            ServiceInstance serviceInstance =
                    extractPojosForBB.extractByKey(execution, ResourceKey.SERVICE_INSTANCE_ID);
            aaiServiceInstanceResources.updateServiceInstance(serviceInstance);
        } catch (Exception ex) {
            logger.error("Exception occurred in AAIUpdateTasks updateServiceInstance", ex);
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}