package org.sipc.se.plugin;


import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public abstract class PluginImpl implements Plugin , Comparable<PluginImpl> {
	
	private Map<String, PluginImpl> map ; 
	
	public Logger log = LogManager.getLogger() ;
	
	public abstract String getUrl() ; 
	
	public abstract boolean onEnable() ; 

	public abstract void getResponse(HttpServletRequest request,
			HttpServletResponse response) ;
	
	public  Map<String, PluginImpl> getServer() {
		return this.map;
	}
	
	public void setMap(Map<String, PluginImpl> map){
		this.map = map ;
	}
	
	public String toString(){
		
		return getUrl() ;
	}
	
	@Override
	public int compareTo(PluginImpl o) {
		
		return this.getUrl().compareTo(o.getUrl());
		
	}
	
}

package org.sipc.se.plugin;


import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public abstract class PluginImpl implements Plugin , Comparable<PluginImpl> {
	
	private Map<String, PluginImpl> map ; 
	
	public Logger log = LogManager.getLogger() ;
	
	public abstract String getUrl() ; 
	
	public abstract boolean onEnable() ; 

	public abstract void getResponse(HttpServletRequest request,
			HttpServletResponse response) ;
	
	public  Map<String, PluginImpl> getServerPluginList() {
		return this.map;
	}
	
	public void setMap(Map<String, PluginImpl> map){
		this.map = map ;
	}
	
	public String toString(){
		
		return getUrl() ;
	}
	
	@Override
	public int compareTo(PluginImpl o) {
		
		return this.getUrl().compareTo(o.getUrl());
		
	}
	
}

Change function name of getServer
Change function name of getServer