code: public static boolean isEventAdminAvailable() {
  		try {
  			return (org.osgi.service.event.EventAdmin.class != null);
  		} catch (NoClassDefFoundError ignore) {
  			return false;
  		}
  	}
docs: Check if {@link org.osgi.service.event.EventAdmin} is available
  
  @return <code>true</code> if EventAdmin class can be loaded,
  <code>false</code> otherwhise