String assetFile = filename.substring(0, filename.indexOf('.'));
String assetFile = filename.substring(0, filename.lastIndexOf('.'));
  protected void addAssetData() {    String assetFile = filename.substring(0, filename.indexOf('.'));    assetFile = assetFile + "-prototype-ini.dat";    if (log.isDebugEnabled()) {      log.debug("Trying asset file " + assetFile);    }    // Check to see if the file exists before we do anything!    if(SocietyFinder.getInstance().locateFile(assetFile) != null) {      BaseComponent asset =         (BaseComponent)new AssetFileComponent(filename, getShortName());      asset.initProperties();      addChild(asset);    }  }