Refactored the MetadataFile#getMetadataBlock