// System.err.println("null device: " + deviceName);
return;
}
/** look up the API */
API api = apiFactory.create(deviceName);
/** error check */
if (api == null){
//System.err.println("api look fails for device name: " + deviceName);
//System.err.println("factory: " + apiFactory.toXML());
return;
}
/** check that this is a valid command for this device */
if (command.isMalformedCommand(api)) return;
/** execute the command */
api.execute(command);
}