code: protected T injectCredentials(T configuration) {
          T oldConfig = findConfiguration(configuration.getName()).orElse(null);
          T target;
          if (StringUtils.isBlank(configuration.getPassword())) {
              if (oldConfig != null && StringUtils.equals(oldConfig.getUser(), configuration.getUser())) {
                  target = configuration.withPassword(oldConfig.getPassword());
              } else {
                  target = configuration;
              }
          } else {
              target = configuration;
          }
          return target;
      }
docs: Adjust a configuration so that it contains a password if
  1) the password is empty
  2) the configuration already exists
  3) the user name is the same