Added helper methods to scala-api, not caching java-api results.