Appliance Recognition in an OSGi-based Home Energy Management Gateway