question: @ CheckForNull public static Dotcake fromJson ( FileObject dotcakeFile ) { if ( ! isDotcake ( dotcakeFile ) ) { return null ; } try ( InputStream inputStream = new BufferedInputStream ( dotcakeFile . getInputStream ( ) ) ) { try ( InputStreamReader reader = new InputStreamReader ( inputStream , CakePHP3Constants . UTF8 ) ) { Dotcake dotcake = JsonSimpleSupport . fromJson ( reader , Dotcake . class ) ; if ( dotcake == null ) { return null ; } dotcake . setDotcakeFile ( FileUtil . toFile ( dotcakeFile ) ) ; return dotcake ; } } catch ( UnsupportedEncodingException | FileNotFoundException ex ) { Exceptions . printStackTrace ( ex ) ; } catch ( IOException ex ) { LOGGER . log ( Level . WARNING , ex . getMessage ( ) ) ; } return null ; }
target:  Create an instance from json file.