throw new IllegalStateException( "A full build needs to be performed before any incremental operations." );
}
//Resource Type might have been validated "externally" (i.e. it's not covered by Kie). Clear any errors.
final IncrementalBuildResults results = new IncrementalBuildResults( gav );
final BuildValidationHelper validator = getBuildValidationHelper( resource );
if ( validator != null ) {
nonKieResourceValidationHelpers.remove( resource );
final List<ValidationMessage> removedValidationMessages = nonKieResourceValidationHelperMessages.remove( resource );
if ( !( removedValidationMessages == null || removedValidationMessages.isEmpty() ) ) {
for ( ValidationMessage validationMessage : removedValidationMessages ) {