@classmethod
def state(cls, size):
    """Return 'state' as jByteArray of given 'size'"""
    jpype = cls._get_jpype()
    JByteArray = jpype.JArray(jpype.JByte)
    state = JByteArray(size)
    return state
