Buggy code:
public abstract class BaseChainedConfigContext implements ConfigContext { private String cloudAPIURL ; private String account ; private String keyId ; private String keyPath ; private Integer timeout ; private Integer retries ; private String privateKeyContent ; private String password ; private String httpsProtocols ; private String httpsCiphers ; private Boolean disableNativeSignatures ; private Boolean noAuth ; private Integer signatureCacheTTL ; public static final ConfigContext DEFAULT_CONFIG = new DefaultsConfigContext ( ) ; public BaseChainedConfigContext ( ) { } public BaseChainedConfigContext ( final ConfigContext defaultingContext ) { } @ Override public String getCloudAPIURL ( ) { } @ Override public String getUser ( ) { } @ Override public String getKeyId ( ) { } @ Override public String getKeyPath ( ) { } @ Override public Integer getTimeout ( ) { } @ Override public Integer getRetries ( ) { } @ Override public String getPrivateKeyContent ( ) { } @ Override public String getPassword ( ) { } @ Override public String getHttpsProtocols ( ) { } @ Override public String getHttpsCipherSuites ( ) { } @ Override public Boolean disableNativeSignatures ( ) { } @ Override public Boolean noAuth ( ) { } public void overwriteWithContext ( final ConfigContext context ) { if ( BaseChainedConfigContext . isPresent ( context . getCloudAPIURL ( ) ) ) { this . cloudAPIURL = context . getCloudAPIURL ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getUser ( ) ) ) { this . account = context . getUser ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getKeyId ( ) ) ) { this . keyId = context . getKeyId ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getKeyPath ( ) ) ) { if ( BaseChainedConfigContext . isPresent ( context . getPrivateKeyContent ( ) ) ) { String msg = "You<seq2seq4repair_space>can't<seq2seq4repair_space>set<seq2seq4repair_space>both<seq2seq4repair_space>a<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>path<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>content" ; ConfigurationException exception = new ConfigurationException ( msg ) ; exception . setContextValue ( "privateKeyPath" , context . getKeyPath ( ) ) ; throw exception ; } this . keyPath = context . getKeyPath ( ) ; } if ( ( context . getTimeout ( ) ) != null ) { this . timeout = context . getTimeout ( ) ; } if ( ( context . getRetries ( ) ) != null ) { this . retries = context . getRetries ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getPrivateKeyContent ( ) ) ) { <START_BUG> if ( BaseChainedConfigContext . isPresent ( keyPath ) ) { <END_BUG> String msg = "You<seq2seq4repair_space>can't<seq2seq4repair_space>set<seq2seq4repair_space>both<seq2seq4repair_space>a<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>path<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>content" ; ConfigurationException exception = new ConfigurationException ( msg ) ; exception . setContextValue ( "privateKeyPath" , context . getKeyPath ( ) ) ; throw exception ; } this . privateKeyContent = context . getPrivateKeyContent ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getPassword ( ) ) ) { this . password = context . getPassword ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getHttpsProtocols ( ) ) ) { this . httpsProtocols = context . getHttpsProtocols ( ) ; } if ( BaseChainedConfigContext . isPresent ( context . getHttpsCipherSuites ( ) ) ) { this . httpsCiphers = context . getHttpsCipherSuites ( ) ; } if ( ( context . disableNativeSignatures ( ) ) != null ) { this . disableNativeSignatures = context . disableNativeSignatures ( ) ; } if ( ( context . noAuth ( ) ) != null ) { this . noAuth = context . noAuth ( ) ; } } protected static boolean isPresent ( final String string ) { } public BaseChainedConfigContext setCloudAPIURL ( final String cloudAPIURL ) { } public BaseChainedConfigContext setUser ( final String user ) { } public BaseChainedConfigContext setKeyId ( final String keyId ) { } public BaseChainedConfigContext setKeyPath ( final String keyPath ) { } public BaseChainedConfigContext setTimeout ( final Integer timeout ) { } public BaseChainedConfigContext setRetries ( final Integer retries ) { } public BaseChainedConfigContext setPrivateKeyContent ( final String privateKeyContent ) { } public BaseChainedConfigContext setPassword ( final String password ) { } public BaseChainedConfigContext setHttpsProtocols ( final String httpsProtocols ) { } public BaseChainedConfigContext setHttpsCiphers ( final String httpsCiphers ) { } public BaseChainedConfigContext setDisableNativeSignatures ( final Boolean disableNativeSignatures ) { } public BaseChainedConfigContext setNoAuth ( final Boolean noAuth ) { } @ Override public boolean equals ( final Object o ) { } @ Override public int hashCode ( ) { } public static String stringify ( final ConfigContext context ) { } @ Override public String toString ( ) { } }

Fix:
if ( BaseChainedConfigContext . isPresent ( context . getKeyPath ( ) ) ) {