public static void setActivity (Description description, Activity activity) {
        if (description instanceof ActedOnBehalfOf) {
            ((ActedOnBehalfOf) description).setActivity (activity);
        }
        if (description instanceof WasAssociatedWith) {
            ((WasAssociatedWith) description).setResponsibleFor (activity);
        }
        if (description instanceof WasDerivedFrom) {
            ((WasDerivedFrom) description).setDeriver (activity);
        }
        if (description instanceof WasEndedBy) {
            ((WasEndedBy) description).setEnder (activity);
        }
        if (description instanceof WasGeneratedBy) {
            ((WasGeneratedBy) description).setGenerater (activity);
        }
        if (description instanceof WasInformedBy) {
            ((WasInformedBy) description).setInformer (activity);
        }
        if (description instanceof WasInfluencedBy) {
            ((WasInfluencedBy) description).setInfluencer (activity);
        }
        if (description instanceof WasInvalidatedBy) {
            ((WasInvalidatedBy) description).setInvalidater (activity);
        }
        if (description instanceof WasStartedBy) {
            ((WasStartedBy) description).setStarter (activity);
        }
    }