protected Resources fetchResourceFile(){
  try {
    if (resourceFile != null) {
      return resourceFile;
    }
    String p=getResourceFilePath();
    if (p.indexOf('.') > -1) {
      return Resources.open(p);
    }
    Resources res=Resources.openLayered(p);
    if (isKeepResourcesInRam()) {
      resourceFile=res;
    }
    return res;
  }
 catch (  IOException ex) {
    ex.printStackTrace();
    return null;
  }
}

protected Resources fetchResourceFile ( ) { try { if ( resourceFile != null ) { return resourceFile ; } String p = getResourceFilePath ( ) ; if ( p . indexOf ( '.' ) > - 1 ) { return Resources . open ( p ) ; } Resources res = Resources . openLayered ( p ) ; if ( isKeepResourcesInRam ( ) ) { resourceFile = res ; } return res ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; return null ; } }
this method may be overriden by subclasses to provide a way to dynamically load a resource file . normally the navigation feature of the uibuilder requires the resource file present in ram . however , that might be expensive to maintain . by implementing this method and replacing the storeresourcefile ( ) with an empty implementation the resource file storage can be done strictly in ram .
