question: public static boolean validSkinSpecFile ( String fileName ) { File file = new File ( Configuration . skinsDir ( ) , fileName ) ; if ( ! file . exists ( ) || ! file . isFile ( ) ) { return false ; } DocumentBuilderFactory dbf = DocumentBuilderFactory . newInstance ( ) ; try { DocumentBuilder builder = dbf . newDocumentBuilder ( ) ; Document doc = builder . parse ( file ) ; NodeList listOfComponents = doc . getElementsByTagName ( UI_ELEMENT ) ; if ( listOfComponents . getLength ( ) > 0 ) { return true ; } else { return false ; } } catch ( Exception e ) { return false ; } }
target:  Checks whether the given path points to a file that is a valid skin specification.