refactored getArrayCopy and populate into a ResourceInterface