ECL-99 Finished performance tests for representations and files services
Fixed bug causing StackOverflowError
Small refactoring