if (proxyRepo.getRemoteAuthenticationSettings() != null && UsernamePasswordRemoteAuthenticationSettings.class.isInstance(proxyRepo .getRemoteAuthenticationSettings())) { oldPasswordForRemoteStorage = ((UsernamePasswordRemoteAuthenticationSettings) proxyRepo .getRemoteAuthenticationSettings()).getPassword();
if ( proxyRepo.getRemoteAuthenticationSettings() != null && UsernamePasswordRemoteAuthenticationSettings.class.isInstance( proxyRepo .getRemoteAuthenticationSettings() ) ) .getRemoteAuthenticationSettings() ).getPassword(); && proxyRepo.getRemoteProxySettings().getProxyAuthentication() != null && UsernamePasswordRemoteAuthenticationSettings.class.isInstance( proxyRepo .getRemoteAuthenticationSettings() ) )