Deprected *With functions in scala and added a few missing Java APIs