@Override
    public String getClass(final Path file) throws BackgroundException {
        if(containerService.isContainer(file)) {
            final String key = String.format("s3.storageclass.%s", containerService.getContainer(file).getName());
            if(StringUtils.isNotBlank(new HostPreferences(session.getHost()).getProperty(key))) {
                return new HostPreferences(session.getHost()).getProperty(key);
            }
            return null;
        }
        // HEAD request provides storage class information of the object.
        // S3 returns this header for all objects except for Standard storage class objects.
        final String redundancy = new S3AttributesFinderFeature(session, acl).find(file).getStorageClass();
        if(StringUtils.isBlank(redundancy)) {
            return S3Object.STORAGE_CLASS_STANDARD;
        }
        return redundancy;
    }
@Test(expected = NotfoundException.class)
    public void testNotFound() throws Exception {
        final Path container = new Path("versioning-test-eu-central-1-cyberduck", EnumSet.of(Path.Type.volume, Path.Type.directory));
        final Path test = new Path(container, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));
        final S3StorageClassFeature feature = new S3StorageClassFeature(session, new S3AccessControlListFeature(session));
        feature.getClass(test);
    }