public Client createClient(List<Protocol> protocols, Component owner, ParameterList parameters) { for(Client client : this.clients) { if(client.getProtocols().containsAll(protocols)) { try { return client.getClass().getConstructor(Component.class, ParameterList.class).newInstance(owner, parameters); } catch (Exception e) { logger.log(Level.SEVERE, "Exception while instantiation the client connector.", e); }  return client; } }
public Client createClient(List<Protocol> protocols, Component owner, ParameterList parameters) { for (Client client : this.clients) { if (client.getProtocols().containsAll(protocols)) { try { return client.getClass().getConstructor(Component.class, ParameterList.class).newInstance(owner, parameters); } catch (Exception e) { logger.log(Level.SEVERE, "Exception while instantiation the client connector.", e); }
   public Client createClient(List<Protocol> protocols, Component owner, ParameterList parameters)   {     	for(Client client : this.clients)     	{        	if(client.getProtocols().containsAll(protocols))     		{     	      try     	      {     	         return client.getClass().getConstructor(Component.class, ParameterList.class).newInstance(owner, parameters);     	      }     	      catch (Exception e)     	      {     	         logger.log(Level.SEVERE, "Exception while instantiation the client connector.", e);     	      }     			     			return client;     		}     	}     	logger.log(Level.WARNING, "No available client connector supports the required protocols: " + protocols);      return null;   }