Mavenized project

- exchanged Asserts with IllegalStateExceptions