package geniusweb.partiesserver; import java.security.Permission; public class SimpleSecurityManager extends SecurityManager { @Override public void checkPermission(Permission permission) { // System.out.println("Checking permission " + permission); if (permission.getName().contains("exitVM")) { throw new IllegalStateException("System.exit call not allowed"); } } }