Add core initialization and factory registration in Java-land.