private FileObject getDeploymentScript(FileObject applicationFolder) throws FileSystemException {
final FileObject metaInf = applicationFolder.getChild("META-INF");
if(metaInf == null) {
throw new FileSystemException("Missing META-INF folder in " + applicationFolder.getName().getPath());
}
final FileObject[] nanocontainerScripts = metaInf.findFiles(new FileSelector(){
public boolean includeFile(FileSelectInfo fileSelectInfo) throws Exception {
return fileSelectInfo.getFile().getName().getBaseName().startsWith(getFileBasename());
}