question: @ Override protected void doPostDbLoading ( Equipment equipment ) { Long processId = equipment . getProcessId ( ) ; Long equipmentId = equipment . getId ( ) ; Long aliveTagId = equipment . getAliveTagId ( ) ; if ( aliveTagId != null ) { ControlTag aliveTagCopy = controlCache . getCopy ( aliveTagId ) ; if ( aliveTagCopy != null ) { setEquipmentId ( ( ControlTagCacheObject ) aliveTagCopy , equipmentId , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Alive tag (%s) found for Equipment %s (#%d)." , aliveTagId , equipment . getName ( ) , equipment . getId ( ) ) ) ; } } Long commFaultTagId = equipment . getCommFaultTagId ( ) ; if ( commFaultTagId != null ) { ControlTag commFaultTagCopy = controlCache . getCopy ( commFaultTagId ) ; if ( commFaultTagCopy != null ) { setEquipmentId ( ( ControlTagCacheObject ) commFaultTagCopy , equipmentId , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No CommFault tag (%s) found for Equipment %s (#%d)." , commFaultTagId , equipment . getName ( ) , equipment . getId ( ) ) ) ; } } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No CommFault tag for Equipment %s (#%d) defined." , equipment . getName ( ) , equipment . getId ( ) ) ) ; } Long statusTag = equipment . getStateTagId ( ) ; if ( statusTag != null ) { ControlTag statusTagCopy = controlCache . getCopy ( statusTag ) ; if ( statusTagCopy != null ) { setEquipmentId ( ( ControlTagCacheObject ) statusTagCopy , equipmentId , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Status tag (%s) found for Equipment %s (#%d)." , statusTag , equipment . getName ( ) , equipment . getId ( ) ) ) ; } } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Status tag for Equipment %s (#%d) defined." , equipment . getName ( ) , equipment . getId ( ) ) ) ; } }
target:  Ensures that the Alive-, Status- and CommFault Tags have appropriately the equipment id set.