return dsls.toArray( result );
}
private List<String> loadGlobalsForPackage( final Path path ) {
final List<String> globals = new ArrayList<String>();
final Path packagePath = projectService.resolvePackage( path ).getPackageMainResourcesPath();
final org.kie.commons.java.nio.file.Path nioPackagePath = paths.convert( packagePath );
final Collection<org.kie.commons.java.nio.file.Path> globalPaths = fileDiscoveryService.discoverFiles( nioPackagePath,
FILTER_GLOBALS );
for ( final org.kie.commons.java.nio.file.Path globalPath : globalPaths ) {
final String globalDefinition = ioService.readAllString( globalPath );