improvements on configuration handling
support for user specified id (Long or String) + tests