final String message = e.getMessage(); throw new ResourceNotFoundException( message );
final String error = "Resource reference [" + ref + "] is undefined."; throw new ResourceNotFoundException( error, e );
    public Resource getResource( String ref ) throws ResourceNotFoundException    {        try        {            return getDefaultResource( ref );        }        catch( InvalidNameException e )        {            final String message = e.getMessage();            throw new ResourceNotFoundException( message );        }    }