private List<ProcessChange> updateControlTagInformation(final ConfigurationElement element,final Process process){
  List<ProcessChange> changes=new ArrayList<ProcessChange>(3);
  Long processId=process.getId();
  ControlTag aliveTagCopy=controlCache.getCopy(process.getAliveTagId());
  if (aliveTagCopy != null) {
    setProcessId((ControlTagCacheObject)aliveTagCopy,processId);
  }
 else {
    throw new ConfigurationException(ConfigurationException.INVALID_PARAMETER_VALUE,String.format("No Alive tag (%s) found for process #%d (%s).",process.getAliveTagId(),process.getId(),process.getName()));
  }
  ControlTag statusTagCopy=controlCache.getCopy(process.getStateTagId());
  if (statusTagCopy != null) {
    setProcessId((ControlTagCacheObject)statusTagCopy,processId);
  }
 else {
    throw new ConfigurationException(ConfigurationException.INVALID_PARAMETER_VALUE,String.format("No Status tag (%s) found for process #%d (%s).",process.getStateTagId(),process.getId(),process.getName()));
  }
  return changes;
}

private List < ProcessChange > updateControlTagInformation ( final ConfigurationElement element , final Process process ) { List < ProcessChange > changes = new ArrayList < ProcessChange > ( 3 ) ; Long processId = process . getId ( ) ; ControlTag aliveTagCopy = controlCache . getCopy ( process . getAliveTagId ( ) ) ; if ( aliveTagCopy != null ) { setProcessId ( ( ControlTagCacheObject ) aliveTagCopy , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Alive tag (%s) found for process #%d (%s)." , process . getAliveTagId ( ) , process . getId ( ) , process . getName ( ) ) ) ; } ControlTag statusTagCopy = controlCache . getCopy ( process . getStateTagId ( ) ) ; if ( statusTagCopy != null ) { setProcessId ( ( ControlTagCacheObject ) statusTagCopy , processId ) ; } else { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , String . format ( "No Status tag (%s) found for process #%d (%s)." , process . getStateTagId ( ) , process . getId ( ) , process . getName ( ) ) ) ; } return changes ; }
ensures that the alive - , status - and commfault tags have appropriately the process id set .
