class AAIUpdateTasks {

    public void updateManagementV6AddressVnf(BuildingBlockExecution execution) {
        try {
            String managementV6Address = execution.getVariable("oamManagementV6Address");
            if (managementV6Address != null) {
                GenericVnf genericVnf = extractPojosForBB.extractByKey(execution, ResourceKey.GENERIC_VNF_ID);
                GenericVnf copiedGenericVnf = genericVnf.shallowCopyId();

                genericVnf.setManagementV6Address(managementV6Address);
                copiedGenericVnf.setManagementV6Address(managementV6Address);

                aaiVnfResources.updateObjectVnf(copiedGenericVnf);
            }
        } catch (Exception ex) {
            logger.error("Exception occurred in AAIUpdateTasks updateManagementV6AddressVnf", ex);
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}