A thought: instead of switching on the loader's class, would it make sense to use a method on loader to handle the results?