code: public static File[] getDescriptorFiles( File definitionDir , final String prefix , final String suffix )
      {
          return definitionDir.listFiles(new FileFilter() {
              /*
               * (non-Javadoc)
               * @see java.io.FileFilter#accept(java.io.File)
               */
              @Override
  			public boolean accept(File pathname)
              {
                  if (!pathname.isFile() || !pathname.canRead())
                      return false;
                  
                  String name = pathname.getName();
                  return name.toLowerCase().endsWith(suffix) && name.startsWith(prefix);
              }
          });
      }
docs: Find all descriptor files with the given prefix in a target folder
  @param definitionDir the target folder
  @param prefix the descriptor filename prefix
  @return an array of descriptor files