* @param bytes
* @return
*/
public static AnnotationInfo extractCustomAnnotation(final byte[] bytes) {
try {
Object userAnnotation = new UnbrokenObjectInputStream(new ByteArrayInputStream(bytes)).readObject();
if (userAnnotation instanceof AnnotationInfo) {
return (AnnotationInfo) userAnnotation;
} else {
// should not occur
throw new RuntimeException(