@Override
  protected Resource doCreateResource(URI uri, URIResourceFactory parent)
  {
    try
    {
      return URLResource.createFromRoot(uri.toURL());
    }
    catch(MalformedURLException e)
    {
      throw new IllegalArgumentException(uri.toString(), e);
    }
  }
@Override
  protected Resource doCreateResource(URI uri, URIResourceFactory parent)
  {
    try
    {
      return URLResource.createFromRoot(uri.toURL());
    }
    catch(MalformedURLException e)
    {
      throw new IllegalArgumentException(uri.toString(), e);
    }
  }
@ Override protected Resource doCreateResource ( URI uri , URIResourceFactory parent ) { try { return URLResource . createFromRoot ( uri . toURL ( ) ) ; } catch ( MalformedURLException e ) { throw new IllegalArgumentException ( uri . toString ( ) , e ) ; } }
Method that needs to be implemented by children..

@param uri
@param parent the parent resource factory
@return the resource
Method that needs to be implemented by children ..