public void addNode(String ClassName, String inName, boolean inOn)throws InvalidNodeNameException {
    	try{
    		Class cNode = Class.forName( "core." + ClassName );
    		
    		//Class.forName( ClassName ).
    		
    		Constructor con = cNode.getConstructor(String.class, Boolean.TYPE);
    		    	
    		if (!nodeTable.containsKey(inName)) {
    			nodeTable.put(inName, con.newInstance(new Object[]{inName, inOn}));
    		} else {
    			throw new InvalidNodeNameException("Node already exists with same name");
    		}
    	}catch(InvalidNodeNameException ie){
    		throw ie;
    	}catch(Exception e){
    		e.printStackTrace();
    	}
    	return;
    }