package org.openspaces.grid.esm;

import com.gigaspaces.grid.security.gsa.SecuredServiceAdminProxy;
import com.gigaspaces.grid.security.interceptor.ProxySecurityInterceptor;
import net.jini.id.Uuid;
import org.jini.rio.resources.servicecore.ServiceAdmin;

/**
 * @author Niv Ingberg
 * @since 9.7.0
 */
public class SecuredESMProxy extends ESMProxy {

    private static final long serialVersionUID = 1L;

    /**
     * Creates a ESM proxy, returning an instance that implements
     * RemoteMethodControl if the server does too.
     *
     * @param monitor The ESM server
     * @param id The Uuid of the ESM
     */
    public static SecuredESMProxy getInstance(ESM monitor, Uuid id) {
        return (new SecuredESMProxy(monitor, id));
    }

    /**
     * @param monitor The ESM server
     * @param id The Uuid of the ESM
     */
    private SecuredESMProxy(ESM monitor, Uuid id) {
        super(monitor, id);
    }

    @Override
    protected boolean isSecuredProxy() {
        return true;
    }
}

@@ -38,220 +38,24 @@
 ort 
-com.gigaspaces.grid.security.gsa.SecuredServiceAdminProxy;%0Aimport com.gigaspaces.grid.security.interceptor.ProxySecurityInterceptor;%0Aimport net.jini.id.Uuid;%0Aimport org.jini.rio.resources.servicecore.ServiceAdmin
+net.jini.id.Uuid
 ;%0A%0A/

remove unused imports