add a new method to return getObjectMetadata