Buggy code:
public interface ModelControllerClient extends Closeable { ModelNode execute ( ModelNode operation ) throws IOException { } ModelNode execute ( Operation operation ) throws IOException { } ModelNode execute ( ModelNode operation , OperationMessageHandler messageHandler ) throws IOException { } ModelNode execute ( Operation operation , OperationMessageHandler messageHandler ) throws IOException { } AsyncFuture < ModelNode > executeAsync ( ModelNode operation , OperationMessageHandler messageHandler ) { } AsyncFuture < ModelNode > executeAsync ( Operation operation , OperationMessageHandler messageHandler ) { } class Factory { public static ModelControllerClient create ( final InetAddress address , final int port ) { } public static ModelControllerClient create ( final String protocol , final InetAddress address , final int port ) { } public static ModelControllerClient create ( final InetAddress address , final int port , final CallbackHandler handler ) { } public static ModelControllerClient create ( final String protocol , final InetAddress address , final int port , final CallbackHandler handler ) { } public static ModelControllerClient create ( final InetAddress address , final int port , final CallbackHandler handler , final Map < String , String > saslOptions ) { } public static ModelControllerClient create ( final String protocol , final InetAddress address , final int port , final CallbackHandler handler , final Map < String , String > saslOptions ) { } public static ModelControllerClient create ( final String hostName , final int port ) throws UnknownHostException { } public static ModelControllerClient create ( final String protocol , final String hostName , final int port ) throws UnknownHostException { } public static ModelControllerClient create ( final String hostName , final int port , final CallbackHandler handler ) throws UnknownHostException { } public static ModelControllerClient create ( final String protocol , final String hostName , final int port , final CallbackHandler handler ) throws UnknownHostException { } public static ModelControllerClient create ( final String hostName , final int port , final CallbackHandler handler , final SSLContext sslContext ) throws UnknownHostException { } public static ModelControllerClient create ( final String protocol , final String hostName , final int port , final CallbackHandler handler , final SSLContext sslContext ) throws UnknownHostException { } public static ModelControllerClient create ( final String hostName , final int port , final CallbackHandler handler , final SSLContext sslContext , final int connectionTimeout ) throws UnknownHostException { } public static ModelControllerClient create ( final String protocol , final String hostName , final int port , final CallbackHandler handler , final SSLContext sslContext , final int connectionTimeout ) throws UnknownHostException { } public static ModelControllerClient create ( final String protocol , final String hostName , final int port , final CallbackHandler handler , final SSLContext sslContext , final int connectionTimeout , final Map < String , String > saslOptions ) throws UnknownHostException { <START_BUG> return ModelControllerClient . Factory . create ( ClientConfigurationImpl . create ( protocol , hostName , port , handler , sslContext , connectionTimeout ) ) ; <END_BUG> } public static ModelControllerClient create ( final String hostName , final int port , final CallbackHandler handler , final Map < String , String > saslOptions ) throws UnknownHostException { } public static ModelControllerClient create ( final String protocol , final String hostName , final int port , final CallbackHandler handler , final Map < String , String > saslOptions ) throws UnknownHostException { } public static ModelControllerClient create ( final ModelControllerClientConfiguration configuration ) { } } }

Fix:
return ModelControllerClient . Factory . create ( ClientConfigurationImpl . create ( protocol , hostName , port , handler , sslContext , connectionTimeout , saslOptions ) ) ;