generics fix which stopped mvn install but didn't interfere in IDE use
rename discard button to cancel