Code example for Collection

Methods: add, contains

0
        return loaded;
    } 
 
    synchronized protected boolean doLoad(String resource,
            Collection<String> loaded) throws IOException {
        if (!loaded.contains(resource)) {
            LOG.debug("Loading builder from {} ", resource);
            builder.define(getClass().getResource(resource));
            loaded.add(resource);
            return true; 
        } else { 
            LOG.debug("Skip loading from {}", resource);
            return false; 
        } 
    } 
 
}