optaplanner-core/src/main/java/org/optaplanner/core/impl/score/director/AbstractScoreDirector.java
@Override
    public final void beforeEntityAdded(Object entity) {
        beforeEntityAdded(getSolutionDescriptor().findEntityDescriptorOrFail(entity.getClass()), entity);
    }
@Override
    public final void beforeEntityAdded(Object entity) {
        beforeEntityAdded(getSolutionDescriptor().findEntityDescriptorOrFail(entity.getClass()), entity);
    }
@ Override public final void beforeEntityAdded ( Object entity ) { beforeEntityAdded ( getSolutionDescriptor ( ) . findEntityDescriptorOrFail ( entity . getClass ( ) ) , entity ) ; }
************************************************************************
************************************************************************