IOUtils.closeQuietly(in);
}
}
public void getSolutionFile(final String resourcePath, final OutputStream out, final ILogger logger) throws Exception {
final IPluginResourceLoader resLoader = PentahoSystem.get(IPluginResourceLoader.class, null);
final String formats = resLoader.getPluginSetting(this.getClass(), "settings/resources/downloadable-formats");
List<String> allowedFormats = Arrays.asList(StringUtils.split(formats, ','));
String extension = resourcePath.replaceAll(".*\\.(.*)", "$1");
if (allowedFormats.indexOf(extension) < 0) {
// We can't provide this type of file