Add support for ContextualProperties in scala and factory methods in both Java and Scala.