move classes to new packages

update pom.xml with some hints
update no more deprecations.

Collections list casting.