protected IContext newContext ( IContext userContext , ILocator locator ) throws MalformedURLException { Assert . isNotNull ( userContext ) ; Assert . isNotNull ( locator ) ; IContext context = davFactory . newContext ( userContext ) ; if ( locator . getLabel ( ) != null ) context . setLabel ( locator . getLabel ( ) ) ; return context ; }
Returns a new context that is based on the given context .