private PluginStub createStub(File stubFile) {
		PluginStub stub = new PluginStub();
		Properties stubProps = new Properties();
		try {
			stubProps.loadFromXML(new FileInputStream(stubFile));
		} catch(Exception e) {
			e.printStackTrace();
			return null;
		}
		stub.setName(stubProps.getProperty("name"));
		stub.setAuthor(stubProps.getProperty("author"));
		stub.setDescription(stubProps.getProperty("description"));
		try {
			stub.setBuildURL(new URL(stubProps.getProperty("build")));
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
		stub.setVersion(Double.parseDouble(stubProps.getProperty("version")));
		try {
			stub.setPluginClass((Plugin)Class.forName(stubProps.getProperty("invoke-from")).newInstance());
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		//Clear properites and null instance
		//To prevent memory build ups
		stubProps.clear();
		stubProps = null;
		return stub;
	}