}
LinkedFilter filter = new LinkedDotFileFilter();
LinkedFilter metaInfFolderFilter = new LinkedMetaInfFolderFilter();
filter.setNextFilter( metaInfFolderFilter );
FileExtensionFilter fileExtensionFilter = new FileExtensionFilter( ".scenario" );
// Get list of immediate children
final DirectoryStream<org.kie.commons.java.nio.file.Path> directoryStream = ioService.newDirectoryStream( pPath );
for ( final org.kie.commons.java.nio.file.Path p : directoryStream ) {
if ( filter.accept( p ) && fileExtensionFilter.accept( p ) ) {
if ( Files.isRegularFile( p ) ) {
items.add( paths.convert( p ) );
} else if ( Files.isDirectory( p ) ) {
items.add( paths.convert( p ) );
}