code: public static boolean findSipApplicationAnnotation(InputStream stream) {
  		try {
  			byte[] rawClassBytes;
  			rawClassBytes = new byte[stream.available()];
  			stream.read(rawClassBytes);
  			boolean one = contains(rawClassBytes, SIP_APPLICATION_BYTES);
  			boolean two = contains(rawClassBytes, ANNOTATION_BYTES);
  			if(one && two) 
  				return true;
  		} catch (Exception e) {}
  		return false;
  	}
docs: Determine if this stream contains SipApplication annotations
  
  TODO: HACK: FIXME: This method reads raw class file trying to determine if it
  uses the SIpApplication annotation. This seems to be reliable and a lot faster
  than using a classloader, but can be reviewed in the future especially when
  JBoss AS 5.0 is available with the new deployer.