def from_frame(klass, frame, connection):
        """
        Create a new BuildStateChange event from a Stompest Frame.
        """
        event = frame.headers['new']
        data = json.loads(frame.body)
        info = data['info']
        build = Build.fromDict(info)
        build.connection = connection
        return klass(build, event)