Add MetadataService to ServerResource to support muti-type data.