@Override
    public Local find() {
        final NSFileManager manager = NSFileManager.defaultManager();
        final NSURL group = manager
                .containerURLForSecurityApplicationGroupIdentifier(identifier);
        if(null == group) {
            log.warn("Missing com.apple.security.application-groups in sandbox entitlements");
        }
        else {
            // You should organize the contents of this directory in the same way that any other Library folder is organized
            final String application = PreferencesFactory.get().getProperty("application.datafolder.name");
            return new FinderLocal(String.format("%s/Library/Application Support", group.path()), application);
        }
        log.warn("Missing support for security application groups. Default to application support directory");
        // Fallback for 10.7 and earlier
        return new ApplicationSupportDirectoryFinder().find();
    }
@Test
    public void testFind() {
        assertNotNull(new SecurityApplicationGroupSupportDirectoryFinder().find());
        assertEquals("~/Library/Group Containers/G69SCX94XU.duck/Library/Application Support/duck",
                new SecurityApplicationGroupSupportDirectoryFinder().find().getAbbreviatedPath());
    }