Add support for JavaPrimitiveTypes in the ui