protected Resource loadResource(String resourceName,int resourceType,String encoding) throws ResourceNotFoundException, ParseErrorException, Exception {
  Resource resource=ResourceFactory.getResource(resourceName,resourceType);
  resource.setRuntimeServices(rsvc);
  resource.setName(resourceName);
  resource.setEncoding(encoding);
  long howOldItWas=0;
  ResourceLoader resourceLoader=null;
  for (int i=0; i < resourceLoaders.size(); i++) {
    resourceLoader=(ResourceLoader)resourceLoaders.get(i);
    resource.setResourceLoader(resourceLoader);
    try {
      if (resource.process()) {
        if (logWhenFound) {
          rsvc.info("ResourceManager : found " + resourceName + " with loader "+ resourceLoader.getClassName());
        }
        howOldItWas=resourceLoader.getLastModified(resource);
        break;
      }
    }
 catch (    ResourceNotFoundException rnfe) {
    }
  }
  if (resource.getData() == null) {
    throw new ResourceNotFoundException("Unable to find resource '" + resourceName + "'");
  }
  resource.setLastModified(howOldItWas);
  resource.setModificationCheckInterval(resourceLoader.getModificationCheckInterval());
  resource.touch();
  return resource;
}

protected Resource loadResource ( String resourceName , int resourceType , String encoding ) throws ResourceNotFoundException , ParseErrorException , Exception { Resource resource = ResourceFactory . getResource ( resourceName , resourceType ) ; resource . setRuntimeServices ( rsvc ) ; resource . setName ( resourceName ) ; resource . setEncoding ( encoding ) ; long howOldItWas = 0 ; ResourceLoader resourceLoader = null ; for ( int i = 0 ; i < resourceLoaders . size ( ) ; i ++ ) { resourceLoader = ( ResourceLoader ) resourceLoaders . get ( i ) ; resource . setResourceLoader ( resourceLoader ) ; try { if ( resource . process ( ) ) { if ( logWhenFound ) { rsvc . info ( "ResourceManager : found " + resourceName + " with loader " + resourceLoader . getClassName ( ) ) ; } howOldItWas = resourceLoader . getLastModified ( resource ) ; break ; } } catch ( ResourceNotFoundException rnfe ) { } } if ( resource . getData ( ) == null ) { throw new ResourceNotFoundException ( "Unable to find resource '" + resourceName + "'" ) ; } resource . setLastModified ( howOldItWas ) ; resource . setModificationCheckInterval ( resourceLoader . getModificationCheckInterval ( ) ) ; resource . touch ( ) ; return resource ; }
loads a resource from the current set of resource loaders
