}
//Add all changes to KieFileSystem before executing the build
final List<String> changedFilesKieBuilderPaths = new ArrayList<String>();
for ( ResourceChange change : changes ) {
final ChangeType type = change.getType();
final Path resource = paths.convert( change.getPath() );
//Only files can be processed
if ( !Files.isRegularFile( resource ) ) {
continue;