public void createFromXML(NodeList components) {
        try {
            for(int i = 0; i < components.getLength(); i++) {
                Node node = components.item(i);
                if(node.getNodeType() == Node.ELEMENT_NODE) {
                    Class c = Class.forName("settii.actorManager.components." + node.getNodeName());
                    Constructor constr = c.getConstructor();
                    BaseComponent bc = (BaseComponent)constr.newInstance();
                    bc.setOwner(this);
                    if(node.getChildNodes() != null && node.getChildNodes().getLength() > 0)  {
                        bc.createFromXML(node.getChildNodes());
                    }
                    
                    this.addComponent(bc);
                }
            }
        }
        catch(Exception e) {
            e.printStackTrace();
        }
        
    }