Can't create OMEXMLService Instance in MATLAB;

This is adapted from MATLAB says the getInstance call has wrong arguments???
As a workaround can I directly call constructor?

Can you try with factory.getInstance(OMEXMLService.class);. Does that resolve the issue?
If not then calling the OMEXMLServiceImpl constructor should also do the exact same thing.

MATLAB can’t recognize the name OMEXMLService without the prefix

Another option would be the below, which is what we use in the MATLAB helper functions:

OMEXMLService = javaObject('');
metadata = OMEXMLService.createOMEXMLMetadata();