Adding getByMimeTypeAndParent function.