if (file.isDirectory()) {
result = new ArrayList();
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
if (files[i].getName().endsWith(".xsl")) {
XSLBean xSLBean = new XSLBean();
xSLBean.setFileName(files[i].getName());
xSLBean.setLabel(StringUtils.replace(files[i].getName().substring(0, files[i].getName().trim().indexOf(".xsl")), "_", " "));
result.add(xSLBean);
}
}
}
return result;