[WFLY-1290] VFSResourceLoader does not allow to iterate resources

https://issues.jboss.org/browse/WFLY-1290