adds some implementation for JavaDescriptorFactory