@Override public EquipmentConfigurationUpdate updateConfig(final SubEquipment subEquipment,final Properties properties) throws IllegalAccessException {
  if ((properties.getProperty("parent_equip_id")) != null) {
    throw new ConfigurationException(ConfigurationException.INVALID_PARAMETER_VALUE,"Reconfiguration of " + "SubEquipment does not currently allow it to be reassigned to a different Equipment!");
  }
  if ((properties.getProperty("equipmentId")) != null) {
    throw new ConfigurationException(ConfigurationException.INVALID_PARAMETER_VALUE,"Reconfiguration of " + "SubEquipment does not currently allow it to be reassigned to a different Equipment!");
  }
  super.updateConfig(subEquipment,properties);
  return new EquipmentConfigurationUpdate();
}

@ Override public EquipmentConfigurationUpdate updateConfig ( final SubEquipment subEquipment , final Properties properties ) throws IllegalAccessException { if ( ( properties . getProperty ( "parent_equip_id" ) ) != null ) { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , "Reconfiguration of " + "SubEquipment does not currently allow it to be reassigned to a different Equipment!" ) ; } if ( ( properties . getProperty ( "equipmentId" ) ) != null ) { throw new ConfigurationException ( ConfigurationException . INVALID_PARAMETER_VALUE , "Reconfiguration of " + "SubEquipment does not currently allow it to be reassigned to a different Equipment!" ) ; } super . updateConfig ( subEquipment , properties ) ; return new EquipmentConfigurationUpdate ( ) ; }
overridden as for subequipment rule out changing the parent equipment associated it is associated to .
