replace __Array in ResourceManager