Fix to integrate generated source folder with eclipse java build path automatically
improved solution removing redundant code