code: public static boolean checkFileForPackaging(String fileName) {
          String[] fileSegments = fileName.split("\\.");
          String fileExt = "";
          if (fileSegments.length > 1) {
              fileExt = fileSegments[fileSegments.length-1];
          }
  
          return checkFileForPackaging(fileName, fileExt);
      }
docs: Checks a file to make sure it should be packaged as standard resources.
  @param fileName the name of the file (including extension)
  @return true if the file should be packaged as standard java resources.