code: public String getString(String name)
  	{
  		InputStream in = null;
  
  		if(name == null)
  			throw new NullPointerException("name is null");
  		try
  		{
  			if((in = loader.getResourceAsStream(prefix + name))==null)
  				throw new ResourceException("Unable to find resource for " + name);
  			return IOUtils.toString(in);
  		}
  		catch(IOException e)
  		{
  			throw new ResourceException("IOException reading resource " + name, e);
  		}
  		finally
  		{
  			Closer.close(in,logger,"resource InputStream for " + name);
  		}
  	}
docs: Gets a resource as a String
  @param name The name of the resource.
  @return The contents of the resource converted to a string
  with the default encoding.
  @throws NullPointerException if name is null.
  ResourceException if the resource cannot be found or
  there is a error reading it.