Changes to use AbstractFile.getNameExtension()

as well as adding "adp" to allowed extensions config