public static void setEntity (Description description, Entity entity) {
        if (description instanceof AlternateOf) {
            ((AlternateOf) description).setAlternateB (entity);
        }
        if (description instanceof HadMember) {
            ((HadMember) description).setMember (entity);
        }
        if (description instanceof SpecializationOf) {
            ((SpecializationOf) description).setGeneralEntity (entity);
        }
        if (description instanceof Used) {
            ((Used) description).setUsed (entity);
        }
        if (description instanceof WasAssociatedWith) {
            ((WasAssociatedWith) description).setPlan (entity);
        }
        if (description instanceof WasDerivedFrom) {
            ((WasDerivedFrom) description).setDerivedFrom (entity);
        }
        if (description instanceof WasEndedBy) {
            ((WasEndedBy) description).setTrigger (entity);
        }
        if (description instanceof WasStartedBy) {
            ((WasStartedBy) description).setTrigger (entity);
        }
        if (description instanceof WasInfluencedBy) {
            ((WasInfluencedBy) description).setInfluencer (entity);
        }
    }