Source:
<code>private Object readResolve() { if (retentionTime != null || startTimeout != null || floatingIps != null || instanceCap != null) { SlaveOptions carry = SlaveOptions.builder() .instanceCap(instanceCap) .retentionTime(retentionTime) .startTimeout(startTimeout) .floatingIpPool(floatingIps ? "public" : null) .build() ; slaveOptions = DescriptorImpl.DEFAULTS.override(carry); retentionTime = null; startTimeout = null; floatingIps = null; instanceCap = null; } LauncherFactory lf = null; if ("JNLP".equals(slaveOptions.slaveType)) { lf = LauncherFactory.JNLP.JNLP; } else if (!"JNLP".equals(slaveOptions.slaveType) && slaveOptions.credentialsId != null) { lf = new LauncherFactory.SSH(slaveOptions.credentialsId); } if (lf != null) { slaveOptions = slaveOptions.getBuilder().launcherFactory(lf).build(); } injectReferenceIntoTemplates(); if (identity != null) { String[] id = identity.split(":"); OpenstackCredential migratedOpenstackCredential = null; if (id.length == 2) { String tenant = id.length > 0 ? id[0] : ""; String username = id.length > 1 ? id[1] : ""; migratedOpenstackCredential = new OpenstackCredentialv2(CredentialsScope.SYSTEM,null,null,tenant,username,credential); } else if (id.length == 3) { String project = id[0]; String username = id[1]; String domain = id[2]; migratedOpenstackCredential = new OpenstackCredentialv3(CredentialsScope.SYSTEM,null,null,username,domain,project,domain,credential); } if (migratedOpenstackCredential != null) { credentialId = migratedOpenstackCredential.getId(); try { OpenstackCredentials.add(migratedOpenstackCredential); OpenstackCredentials.save(); } catch (IOException e) { <START> e.printStackTrace(); <END> } } } return this; }</code><technical_language>Send logger, instead</technical_language>

Target:
private Object readResolve() { if (retentionTime != null || startTimeout != null || floatingIps != null || instanceCap != null) { SlaveOptions carry = SlaveOptions.builder() .instanceCap(instanceCap) .retentionTime(retentionTime) .startTimeout(startTimeout) .floatingIpPool(floatingIps ? "public" : null) .build() ; slaveOptions = DescriptorImpl.DEFAULTS.override(carry); retentionTime = null; startTimeout = null; floatingIps = null; instanceCap = null; } LauncherFactory lf = null; if ("JNLP".equals(slaveOptions.slaveType)) { lf = LauncherFactory.JNLP.JNLP; } else if (!"JNLP".equals(slaveOptions.slaveType) && slaveOptions.credentialsId != null) { lf = new LauncherFactory.SSH(slaveOptions.credentialsId); } if (lf != null) { slaveOptions = slaveOptions.getBuilder().launcherFactory(lf).build(); } injectReferenceIntoTemplates(); if (identity != null) { String[] id = identity.split(":"); OpenstackCredential migratedOpenstackCredential = null; if (id.length == 2) { String tenant = id.length > 0 ? id[0] : ""; String username = id.length > 1 ? id[1] : ""; migratedOpenstackCredential = new OpenstackCredentialv2(CredentialsScope.SYSTEM,null,null,tenant,username,credential); } else if (id.length == 3) { String project = id[0]; String username = id[1]; String domain = id[2]; migratedOpenstackCredential = new OpenstackCredentialv3(CredentialsScope.SYSTEM,null,null,username,domain,project,domain,credential); } if (migratedOpenstackCredential != null) { credentialId = migratedOpenstackCredential.getId(); try { OpenstackCredentials.add(migratedOpenstackCredential); OpenstackCredentials.save(); } catch (IOException e) { LOGGER.log(Level.SEVERE, "Unable to migrate the credential to the new version"); } } } return this; }