What about if("system.bundle".equals(bundle.getSymbolicName()){....}