protected Element writeOldSettings(String sourceToolName) throws WriteExternalException {
  final Element sourceElement=new Element(InspectionProfileImpl.INSPECTION_TOOL_TAG);
  sourceElement.setAttribute(InspectionProfileImpl.CLASS_TAG,sourceToolName);
  sourceElement.setAttribute(ToolsImpl.ENABLED_ATTRIBUTE,String.valueOf(isEnabledByDefault(sourceToolName)));
  sourceElement.setAttribute(ToolsImpl.LEVEL_ATTRIBUTE,getDefaultSeverityLevel(sourceToolName));
  sourceElement.setAttribute(ToolsImpl.ENABLED_BY_DEFAULT_ATTRIBUTE,String.valueOf(isEnabledByDefault(sourceToolName)));
  return sourceElement;
}

protected Element writeOldSettings ( String sourceToolName ) throws WriteExternalException { final Element sourceElement = new Element ( InspectionProfileImpl . INSPECTION_TOOL_TAG ) ; sourceElement . setAttribute ( InspectionProfileImpl . CLASS_TAG , sourceToolName ) ; sourceElement . setAttribute ( ToolsImpl . ENABLED_ATTRIBUTE , String . valueOf ( isEnabledByDefault ( sourceToolName ) ) ) ; sourceElement . setAttribute ( ToolsImpl . LEVEL_ATTRIBUTE , getDefaultSeverityLevel ( sourceToolName ) ) ; sourceElement . setAttribute ( ToolsImpl . ENABLED_BY_DEFAULT_ATTRIBUTE , String . valueOf ( isEnabledByDefault ( sourceToolName ) ) ) ; return sourceElement ; }
serialize old inspection settings as they could appear in old profiles
