question: public static Document openDocumentFile ( String filePath , Class c ) { if ( filePath == null ) { String message = Logging . getMessage ( "nullValue.FileIsNull" ) ; throw new IllegalArgumentException ( message ) ; } InputStream inputStream = WWIO . openFileOrResourceStream ( filePath , c ) ; return inputStream != null ? openDocumentStream ( inputStream ) : null ; }
target:  Opens an XML file given the file's location in the file system or on the classpath.