1. An Open Service Gateway Initiative (OSGI)-based home gateway apparatus which performs a matching process of a home network and an outside network, the apparatus comprising: a device detecting unit which detects at least one legacy device, which does not load a controllable middleware, from a plurality of home devices connected to the home network; an outside network interface which receives drive information of the detected legacy device through the outside network; a bundle creating unit which creates a legacy bundle by combining the input drive information and a predetermined network protocol which can be used in the home network; and a device registering unit which registers the created legacy bundle in the OSGi framework.