/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package com.xpn.xwiki.web;

import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;

public interface XWikiEngineContext {
    public Object getAttribute(String name);
    public void setAttribute(String name, Object value);
    public String getRealPath(String path);
    public URL getResource(String name) throws MalformedURLException;
    public InputStream getResourceAsStream(String name);
    public String getMimeType(String filename);
}

@@ -1004,16 +1004,59 @@
 t.URL;%0A%0A
+import org.xwiki.environment.Environment;%0A%0A
 public i
@@ -1246,161 +1246,407 @@
 lic 
-URL getResource(String name) throws MalformedURLException;%0A    public InputStream getResourceAsStream(String name);%0A    public String getMimeType
+String getMimeType(String filename);%0A%0A    /**%0A     * @deprecated since 3.5M1, use %7B@link Environment#getResource(String)%7D instead%0A     */%0A    @Deprecated%0A    public URL getResource(String name) throws MalformedURLException;%0A%0A    /**%0A     * @deprecated since 3.5M1, use %7B@link Environment#getResourceAsStream(String)%7D instead%0A     */%0A    @Deprecated%0A    public InputStream getResourceAsStream
 (String 
 file
@@ -1637,25 +1637,21 @@
 ream(String 
-file
 name);%0A%7D%0A

Add missing @deprecated