This doesn't need changing unless you change something else, but this should be Set<String> from getChildrenNames(). Only the names are used, which is why passing 'false' to readResourceFromRoot' works. If someone later tried to use the ResourceEntry for something more it will blow up.