docs: public ProxyAuthentication getProxyAuthentication() {
  		// convert authentication to layerAuthentication so we only use one
  		// TODO Remove when removing deprecated authentication field.
  		if (layerAuthentication == null && authentication != null) {
  			layerAuthentication = new LayerAuthentication();
  			layerAuthentication.setAuthenticationMethod(LayerAuthenticationMethod.valueOf(authentication
  					.getAuthenticationMethod().name()));
  			layerAuthentication.setPassword(authentication.getPassword());
  			layerAuthentication.setPasswordKey(authentication.getPasswordKey());
  			layerAuthentication.setRealm(authentication.getRealm());
  			layerAuthentication.setUser(authentication.getUser());
  			layerAuthentication.setUserKey(authentication.getUserKey());
  		}
  		// TODO Remove when removing deprecated authentication field.
  		return layerAuthentication;
  	}