*
* @param applicationConfig
* @throws IllegalArgumentException
*/
public static Output getOutputDevice(Collector collector, ApplicationConfigurationHelper applicationConfig) throws IllegalArgumentException {
OutputDeviceEnum outputDeviceEnum = applicationConfig.getOutputDevice();
Output output = null;
try {
switch (outputDeviceEnum) {
case PIXELINVADERS:
output = new PixelInvadersSerialDevice(applicationConfig, collector.getNrOfScreens());