@Override
        public void checkPermission(Permission perm) {
            if (perm instanceof FilePermission) {
                if ( perm.getActions().equals("read")) {
                    return;
                }else if(perm.getActions().equals("write") || perm.getActions().equals("delete") && perm.getName().indexOf("Temp")> 0){
                    return;
                }
                throw new SecurityException();
            }
        }