class ResourceFactory {

    static Set<IResource> toResourceSet(String... resourceNames)
    {
        return Arrays
               .stream(resourceNames)
               .map(String::trim)
               .map(ResourceFactory::toResource)
               .collect(Collectors.toSet());
    }

    private  ResourceFactory();

}