def moftype(cimtype, refclass):
    """Converts a CIM type name to MOF syntax."""

    if cimtype == 'reference':
        _moftype = refclass + " REF"
    else:
        _moftype = cimtype

    return _moftype