for ( final ResourceChange change : pathCollectionEntry.getValue() ) {
final Path resource = pathCollectionEntry.getKey();
//If resource is not within a Package it cannot be used for an incremental build
final Project project = projectService.resolveProject( resource );
final Package pkg = projectService.resolvePackage( resource );
if ( project != null && pkg != null ) {
if ( !projectBatchChanges.containsKey( project ) ) {
projectBatchChanges.put( project,
new HashMap<Path, Collection<ResourceChange>>() );
}