The main code base also seems to be logging when there are problems with lines like this.  Here is some code based on the same example from org.jgroups.stack.Configurator:
```java
AWSCredentialsProvider awsCredentialsProvider = null;
try {
  awsCredentialsProvider = (AWSCredentialsProvider) credsProviderClazz.newInstance();
}
catch( InstantiationException e ) {
  log.error("an instance of " + credentials_provider_class + " could not be created. Please check that it implements" +
                    " interface AWSCredentialsProvider and that is has a public empty constructor !");
            throw e;
}
```