protected static synchronized FileObjectWrapper getOrCreateProfileProperties ( final Filer filer , String fileName ) throws IOException { FileObjectWrapper fileObject = traceeProfileProperties . get ( fileName ) ; if ( fileObject == null ) { fileObject = new FileObjectWrapper ( filer . createResource ( StandardLocation . SOURCE_OUTPUT , "" , fileName , null ) ) ; traceeProfileProperties . put ( fileName , fileObject ) ; } return fileObject ; }
Central method to get cached FileObjectWrapper . Creates new FileObjectWrapper if it can t be found