Does not throw checked exception so catch RuntimeException instead of Exception