Add NOTNULL OutputMapper
avoid NPE, log warning instead
Add more constants
add lastPathElement utility