Implemented ResouceLoader as generic class