question: public boolean isSourceCoreHealthy ( SolrCore bestsrcCore ) { if ( bestsrcCore == null ) { ReplicationDiagnostics replicatedCoreDiagnostic = new ReplicationDiagnostics ( ) ; replicatedCoreDiagnostic . setEntity ( "NULL" ) ; replicatedCoreDiagnostic . setFailedReplication ( true ) ; replicatedCoreDiagnostic . setReason ( "Replication Failed since source Core is NULL.." ) ; allDiagnostics . add ( replicatedCoreDiagnostic ) ; if ( ! replicatorConfig . shouldSkipReplicationFailures ( ) ) { return false ; } } else if ( ! bestsrcCore . available ) { ReplicationDiagnostics replicatedCoreDiagnostic = new ReplicationDiagnostics ( ) ; replicatedCoreDiagnostic . setEntity ( bestsrcCore . name ) ; replicatedCoreDiagnostic . setFailedReplication ( true ) ; replicatedCoreDiagnostic . setReason ( "Replication Failed since source Core is not available.." ) ; allDiagnostics . add ( replicatedCoreDiagnostic ) ; if ( ! replicatorConfig . shouldSkipReplicationFailures ( ) ) { return false ; } } return true ; }
target:  Given a core, verify if it is healthy for replication