@ Override public UserProfile convert ( File file ) { if ( file == null ) return null ; try { String text = IO . readFile ( file ) ; if ( text == null || text . length ( ) == 0 ) return null ; return converter . convert ( text ) ; } catch ( IOException e ) { throw new SystemException ( "Unable to convert file:" + file . getAbsolutePath ( ) + " to user profile ERROR:" + e . getMessage ( ) , e ) ; } }
Convert the user profile