<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def r_dts_collection(self, objectId=None):
 """ DTS Collection Metadata reply for given objectId :param objectId: Collection Identifier :return: JSON Format of DTS Collection """

        try:
            j = self.resolver.getMetadata(objectId=objectId).export(Mimetypes.JSON.DTS.Std)
            j = jsonify(j)
            j.status_code = 200
        except NautilusError as E:
            return self.dts_error(error_name=E.__class__.__name__, message=E.__doc__)
        return j