class S3ObjectsProvider {

  public String[] getS3ObjectsNames( String bucketName ) throws Exception {
    S3Bucket bucket = getBucket( bucketName );
    if ( bucket == null ) {
      throw new Exception( Messages.getString( "S3DefaultService.Exception.UnableToFindBucket.Message", bucketName ) );
    }
    return Arrays.stream( getS3Objects( bucket ) ).map( b -> b.getKey() ).toArray( String[]::new );
  }

  public  S3ObjectsProvider( S3Service service );

}