issue #491 OME metadata import in Java needed some changes and tests to make it work properly