@classmethod
def wrap_command(cls, command, parameters=None):
    """Wrap a command to native DES framing.

        :param command: Command byte

        :param parameters: Command parameters as list of bytes

        https://github.com/greenbird/workshops/blob/master/mobile/Android/Near%20Field%20Communications/HelloWorldNFC%20Desfire%20Base/src/com/desfire/nfc/DesfireReader.java#L129
        """
    if parameters:
        return [144, command, 0, 0, len(parameters)] + parameters + [0]
    else:
        return [144, command, 0, 0, 0]
