Source:
<code>public String getMemento() throws CoreException { Document doc; try { doc = DLTKLaunchingPlugin.getDocument(); } catch (ParserConfigurationException e) { IStatus status = new Status( IStatus.ERROR, DLTKLaunchingPlugin.getUniqueIdentifier(), ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, LaunchingMessages.RuntimeBuildpathEntry_An_exception_occurred_generating_runtime_classpath_memento_8, e); throw new CoreException(status); } Element node = doc.createElement("runtimeBuildpathEntry"); doc.appendChild(node); <START> node.setAttribute("type", (Integer.valueOf(getType())).toString()); END> node.setAttribute( "path", (Integer.valueOf(getBuildpathProperty())).toString()); switch (getType()) { case PROJECT: node.setAttribute("projectName", getPath().lastSegment()); break; case ARCHIVE: IResource res = getResource(); if (res == null) { node.setAttribute("externalArchive", getPath().toString()); } else { node.setAttribute( "internalArchive", res.getFullPath().toString()); } break; case CONTAINER: node.setAttribute("containerPath", getPath().toString()); break; } if (getScriptProject() != null) { node.setAttribute( "scriptProject", getScriptProject().getElementName()); } try { return DLTKLaunchingPlugin.serializeDocument(doc); } catch (IOException e) { IStatus status = new Status( IStatus.ERROR, DLTKLaunchingPlugin.getUniqueIdentifier(), ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, LaunchingMessages.RuntimeBuildpathEntry_An_exception_occurred_generating_runtime_classpath_memento_8, e); throw new CoreException(status); } catch (TransformerException e) { IStatus status = new Status( IStatus.ERROR, DLTKLaunchingPlugin.getUniqueIdentifier(), ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, LaunchingMessages.RuntimeBuildpathEntry_An_exception_occurred_generating_runtime_classpath_memento_8, e); throw new CoreException(status); } }</code><technical_language>Integer.toString(...),</technical_language>

Target:
public String getMemento() throws CoreException { Document doc; try { doc = DLTKLaunchingPlugin.getDocument(); } catch (ParserConfigurationException e) { IStatus status = new Status( IStatus.ERROR, DLTKLaunchingPlugin.getUniqueIdentifier(), ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, LaunchingMessages.RuntimeBuildpathEntry_An_exception_occurred_generating_runtime_classpath_memento_8, e); throw new CoreException(status); } Element node = doc.createElement("runtimeBuildpathEntry"); doc.appendChild(node); node.setAttribute("type", Integer.toString(getType())); node.setAttribute( "path", Integer.toString(getBuildpathProperty())); switch (getType()) { case PROJECT: node.setAttribute("projectName", getPath().lastSegment()); break; case ARCHIVE: IResource res = getResource(); if (res == null) { node.setAttribute("externalArchive", getPath().toString()); } else { node.setAttribute( "internalArchive", res.getFullPath().toString()); } break; case CONTAINER: node.setAttribute("containerPath", getPath().toString()); break; } if (getScriptProject() != null) { node.setAttribute( "scriptProject", getScriptProject().getElementName()); } try { return DLTKLaunchingPlugin.serializeDocument(doc); } catch (IOException e) { IStatus status = new Status( IStatus.ERROR, DLTKLaunchingPlugin.getUniqueIdentifier(), ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, LaunchingMessages.RuntimeBuildpathEntry_An_exception_occurred_generating_runtime_classpath_memento_8, e); throw new CoreException(status); } catch (TransformerException e) { IStatus status = new Status( IStatus.ERROR, DLTKLaunchingPlugin.getUniqueIdentifier(), ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, LaunchingMessages.RuntimeBuildpathEntry_An_exception_occurred_generating_runtime_classpath_memento_8, e); throw new CoreException(status); } }