public IEclipsePreferences preApply(IEclipsePreferences node) {
// the node does not need to be the root of the hierarchy
Preferences root = node.node("/"); //$NON-NLS-1$
try {
// we must not create empty preference nodes, so first check if the node exists
if (root.nodeExists(InstanceScope.SCOPE)) {
Preferences instance = root.node(InstanceScope.SCOPE);
// we must not create empty preference nodes, so first check if the node exists
if (instance.nodeExists(JavaCore.PLUGIN_ID)) {
cleanJavaCore(instance.node(JavaCore.PLUGIN_ID));
}