Java Several Methods Of Converting Between Map and Object