Basically, original exception is swallowed (just logged), this method returns null and caller will throw an NPE while trying Integer ->int boxing. meh. Better declare an exception is thrown