ObjectMetadata renamed to ItemMetadata. Other modifications to adapt it
to the new global-Id management.