Changed the equals method of JavaItem to compare only important stuff.